Error calling MS-Access Module Function from SQL

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: Error calling MS-Access Module Function from SQL

    Lars wrote:
    > Hi
    >
    > We are using an MS Access DB for basic information such as
    > user logins and products/rates. The rate calculations are
    > based on table information that is processed with a
    > multitude of parameters in an Module/Function.
    > For easier understanding imagine this:
    > EXAMPLE:
    > SELECT fnRate(@Param1, @Param2) AS Rate FROM Rates
    > PUBLIC FUNCTION fnRate(@Param1, @Param2) AS Currency
    >
    > This methology works great within Access itself, however
    > fails with "UNDEFINED FUNTION fnRATE" - ERROR JET Database
    Unfortunately, user-defined procedures in an Access module are only
    accessible when Access is running. There are security ramifications that
    prompted MS to prevent external applications (such as ADO) from running
    them.

    There are other builtin VBA functions that are also prevented from running
    unless Access is involved. They are listed here:
    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;239482[/url]

    Sorry,
    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows Guest

  2. Similar Questions and Discussions

    1. Error calling an ATL function from ASP
      Hi All I made an MFC app and then added an atl object to it and expose an interface. I then register the tlb file and call its functions from...
    2. Calling a function within a function registered to an event
      Hey, Just registered and tried to search through the forum for a solution to my problem, but I haven't found anything that could help me. I've...
    3. Newbie Q: calling access data on onclick function
      I am working on a page which will post a set of images which can be clicked upon to show a larger image along with information associated with the...
    4. "Access is Denied" error when calling wshShell from ASP
      I've got a script in an ASP page that is supposed to extract certain files from a zip file, move them, create a new zip with the moved files and...
    5. Calling a function from a module in an Opened Form
      On Wed, 23 Jul 2003 19:11:52 -0700, "Arvin Villodres" <arvin@arloaluminum.com> wrote: Well, you should put Option Explicit at the top of...
  3. #2

    Default Re: Error calling MS-Access Module Function from SQL

    That's right. ASP pages can "see" Access tables and queries but that's
    about it.

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139