Im trying to get my code to open a second DB instance, copy a form and paste it into the currentdb but I can't get it to work
So far I have this..
(currentdb = update.mdb)
When I run this I get "Access cannot find the object 'Main_Menu'.
I'm guessing that im just opening up the tables ?? How can I open up the entire db so I can copy the forms?
So far I have this..
(currentdb = update.mdb)
Code:
Set wsp = CreateWorkspace("", "admin", "", dbUseJet)
Set db = wsp.OpenDatabase("C:\Application\StockDB.mdb")
DoCmd.CopyObject "J:\Dev\Update.mdb", "Main_Menu", acForm, "Main_Menu"
When I run this I get "Access cannot find the object 'Main_Menu'.
I'm guessing that im just opening up the tables ?? How can I open up the entire db so I can copy the forms?