Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running an Access Macro in ASP

Status
Not open for further replies.

thepp26

Programmer
May 29, 2001
2
US
I am trying to execute a MS Access macro in ASP.
I've tried connDB.execute("macroname"), but have had no luck.. Any thoughts?

 
AFAIK, ADO doesnt have the capability to do this. You'll need to resort to either DDE or COM Automation.

Set oAccess = CreateObject("Access.Application")
WITH oAcces
.OpenCurrentDatabase "C:\MyAccessDB.mdb"
.DoCmd.RunMacro "MyMacroName"
.CloseCurrentDatabase
.Quit
END WITH
Set MyAccessObject = NOTHING Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top