FancyPrairie
Programmer
I need to open an access database and run some code which, in turn, prints a report.
I've searched the net for examples and many of them indicate the following code works. But when I run the script I get the error: ActiveX component can't create object: 'Access.application'
How do I resolve this issue?
I've searched the net for examples and many of them indicate the following code works. But when I run the script I get the error: ActiveX component can't create object: 'Access.application'
How do I resolve this issue?
Code:
set objaccess = createobject("Access.application")
objaccess.opencurrentdatabase ("E:\dev\db4.mdb")
objaccess.run "macro1"
objaccess.CloseCurrentDatabase
set objaccess=nothing