PaulBarter
MIS
I get the error "ActiveX component can't create object" when trying to compact a database when trying to run on a different PC.
I am using the recommended code:
but it fails on the Set command
I have reference to Microsoft Jet & Replication Object 2.6 Library (msjro.dll)
This run fine on my development PC.
What am I doing wrong?
I am using the recommended code:
Code:
Dim jro As jro.JetEngine
Set jro = New jro.JetEngine
jro.CompactDatabase xxxx,yyyy
I have reference to Microsoft Jet & Replication Object 2.6 Library (msjro.dll)
This run fine on my development PC.
What am I doing wrong?