If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > asp calling a sub(or function) of module

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-04, 18:16
cursavas cursavas is offline
Registered User
 
Join Date: Nov 2004
Posts: 2
asp calling a sub(or function) of module

I want to call a sub of the module created in a ms access database.
I could not call it right away so I created a macro which does "RunCode" and I put the name of the sub,but this code would not work in ASP.I can run other macros from ASP but I can not run this one,the error I get is:

--------------------------------
MSAccess error '800a0979'
The expression you entered has a function name that Microsoft Access can't find.
-------------------------------

my code is here:
Set objAccess = CreateObject("Access.Application")
objAccess.OpenCurrentDatabase "C:\database1.mdb"

'this does not work
'objAccess.Call CreateLMSPortfolio("Luke", False, "5", "Pack", "Jmac", "RTI")

'so I run a macro
objAccess.DoCmd****nMacro "Macro1"
-------
Does anybody have a solution for this?
thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On