I was tasked to create like a Desktop Station that would allow the users access to all our Access databases without searching all over our network. I can do this really easy by creating links to the databases on a main form, but I don't want to have more than one instance of access open at a time. I have a command button with the following code:
Private Sub cmdTracker_Click()
strDataPath = "Database Path and name over the Network"
OpenDBs
End Sub
Sub OpenDBs()
Set appAccess = GetObject(, "Access.application")
If Err Then
MsgBox "Application not Running"
blnRunning = True
Set appAccess = GetObject(, "Access.application")
End If
appAccess.OpenCurrentDatabase (strDataPath), False
At this point if the database I'm trying to open is already open I get the error message Runtime error 7867 - "You already have the database Open"
The databases are located all over the network. We are using Windows XP and Access 2000. Do we have samples in the Forum that will help me accomplish this goal, or do any of you knows how to make it work?
Thanks,
Maritza
Private Sub cmdTracker_Click()
strDataPath = "Database Path and name over the Network"
OpenDBs
End Sub
Sub OpenDBs()
Set appAccess = GetObject(, "Access.application")
If Err Then
MsgBox "Application not Running"
blnRunning = True
Set appAccess = GetObject(, "Access.application")
End If
appAccess.OpenCurrentDatabase (strDataPath), False
At this point if the database I'm trying to open is already open I get the error message Runtime error 7867 - "You already have the database Open"
The databases are located all over the network. We are using Windows XP and Access 2000. Do we have samples in the Forum that will help me accomplish this goal, or do any of you knows how to make it work?
Thanks,
Maritza