Basically, there is a pre-existing procedure in a DB. I want to to be able to run this procedure from a different DB.
Can this be done?
If so, how?
Can this be done?
If so, how?
Dim appAccess As Access.Application
'Create instance of Access Application object.
Set appAccess = CreateObject("Access.Application")
'Open Test Database in Microsoft Access window.
appAccess.OpenCurrentDatabase "C:\Test\Test.mdb", False
'Run Sub procedure.
appAccess.Run "CountTablesInDB"
Set appAccess = Nothing
Comment