B
Bill Andersen
I have a procedure in a separate database. I want to call that procedure.
This is what I have so far.
dim appAccess as Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase "C:\Sykes\Copy File.mdb"
Now, I need the syntax to call the procedure in 'Copy File.mdb'. That
procedure is in a module called 'CopyData'. The procedure is named
'CopyThis'. I tried the following: appAccess.Run "CopyThis" . That gives
an error saying it can't find "CoipyThis". Then I tried
"appAccess.Run C:\Sykes\Copy File.mdb\CopyData\CopyThis". This also gave an
error saying that it could not find the object.
Please suggest a better syntax.
Bill Andersen
This is what I have so far.
dim appAccess as Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase "C:\Sykes\Copy File.mdb"
Now, I need the syntax to call the procedure in 'Copy File.mdb'. That
procedure is in a module called 'CopyData'. The procedure is named
'CopyThis'. I tried the following: appAccess.Run "CopyThis" . That gives
an error saying it can't find "CoipyThis". Then I tried
"appAccess.Run C:\Sykes\Copy File.mdb\CopyData\CopyThis". This also gave an
error saying that it could not find the object.
Please suggest a better syntax.
Bill Andersen