I am trying to copy a form from one database to another PASSWORD protected database.
The following will open the database but I get an error as the file already exists.
Runtime error 2007 - you already have a database object named frm_Utilities.
I tried the Docmd.transfer method but it always requests the password even though I specify it.
The following will open the database but I get an error as the file already exists.
Runtime error 2007 - you already have a database object named frm_Utilities.
I tried the Docmd.transfer method but it always requests the password even though I specify it.
Code:
DoCmd.SetWarnings False
DoCmd.CopyObject "X:\Test1\TestFile1.mdb", _
"frm_Utilities", acForm, "frm_Utilities" 'script before acform refers to this dbase, after to the other
DoCmd.SetWarnings True