Hello,
I'm trying to run a public function from another database (kardexcommands.accdb) by a sub_click function of a button in my local database.
It works fine but every time i push this button a copy of kardexcommands.accdb database opens multiple times and then the functions is called correctly.
It would be nice if i can call this function ("Test") in an already open database .... (not duplicating)
The code:
Private Sub IN_Click() (This button is on my local database)
Dim appAccess As New Access.Application
appAccess.OpenCurrentDatabase ("W:\Bieke\Allerlei\kardexcommands.accdb") (This is the 'other' database where the function "Test" is)
appAccess.Run "Test"
End Sub
Can someone help me with that?
Thanks,
Bieke
I'm trying to run a public function from another database (kardexcommands.accdb) by a sub_click function of a button in my local database.
It works fine but every time i push this button a copy of kardexcommands.accdb database opens multiple times and then the functions is called correctly.
It would be nice if i can call this function ("Test") in an already open database .... (not duplicating)
The code:
Private Sub IN_Click() (This button is on my local database)
Dim appAccess As New Access.Application
appAccess.OpenCurrentDatabase ("W:\Bieke\Allerlei\kardexcommands.accdb") (This is the 'other' database where the function "Test" is)
appAccess.Run "Test"
End Sub
Can someone help me with that?
Thanks,
Bieke