I've been surfing the web for hours and still can't find the answer. All I want to do is, on click or on open a form, close the database I'm in and open another one. Anybody could tell me how?
Dim appAccess As Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase "Path\filename"
'to close current db
quit
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.