The Stoat
The Grim Squeaker
- Local time
- Today, 23:14
- Joined
- May 26, 2004
- Messages
- 239
Hi all,
I'm trying to open Database B from Database A and then close Database A using the following code in Access 2000
The code opens database B but when i try to close the Database A it closes both of them. Is there a way around this?
Thanks
TS
I'm trying to open Database B from Database A and then close Database A using the following code in Access 2000
Code:
Function OpenPasswordProtectedDB()
Static acc As Access.Application
Set acc = New Access.Application
acc.Visible = True
acc.OpenCurrentDatabase CurrentProject.Path & "\" & "B.mdb", , "MyPassword"
Application.Quit
End Function
The code opens database B but when i try to close the Database A it closes both of them. Is there a way around this?
Thanks
TS