How do you open another MS Access database form from your current form. And, using a button on the current form. I tried the button wizard and it only opens .exe files.
Hi
If you mean open a form from another database, you could use code something like this:
Code:
Dim acApp As Access.Application
txtFilename = "C:\MyMDB.mdb"
Set acApp = CreateObject("Access.Application")
acApp.OpenCurrentDatabase txtFilename
acApp.Visible = True
acApp.DoCmd.OpenForm "Employees"
But it is not very satisfactory, because you are opening another instance of Access, which could be confusing. Is this the kind of thing you were thinking of?
Why not just use "Hyperlink Address property" of the Command Button?
________________________________________
Zameer Abdulla Visit Me Minds are like parachutes. They only function when they are open. -Sir James Dewar (1877-1925)
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.