Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu issue

Status
Not open for further replies.

danielcan

Technical User
Jul 6, 2007
15
0
0
CA
Good day again

In my main switchboard I want to put a macro to close a database to open another one. what would be an appropriate code or macro format to use.

Thank you
 
Use Code, not macros:

Code:
Sub OpenDB()
Dim aC As Access.Application

Set aC = New Access.Application
'Open the other db
aC.OpenCurrentDatabase "C:\SomeFolder\SomeDatabase.mdb"
'close this one
Quit
End Sub
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top