I alread have an open access file. When I click on the command button, it opens up another access file. Following is the code that I am using:
Dim appAccess as Access.Application
Set appAccess = CreateObject ("Access.Application")
appAccess.OpenCurrentDatabase (CurrentProject.Path & "\"), False
This code works. But I am creaing another access application when I already have one open.
Instead of using:
Set appAccess = CreateObject ("Access.Application")
can I use some other command which sets appAccess to an already open Access Application rather than creating a new application object.
Thanks a lot.
J
Dim appAccess as Access.Application
Set appAccess = CreateObject ("Access.Application")
appAccess.OpenCurrentDatabase (CurrentProject.Path & "\"), False
This code works. But I am creaing another access application when I already have one open.
Instead of using:
Set appAccess = CreateObject ("Access.Application")
can I use some other command which sets appAccess to an already open Access Application rather than creating a new application object.
Thanks a lot.
J