G
Guest
I am using Access 2002, and I need to create a new(empty)
mdb from within the vba code of a form on another mdb.
A previous posting suggested using the CreateDatabase
method of the Application object. So I looked up the
Application object in the help, but no CreateDatabase
method was listed for the Application Object. I did find
the DAO CreateDatabase Example in help, but when I tried
it, neither the 'Database' object (in the dim statement)
nor the CreateDatabase command was not recognized by the
compiler.
dim newDB as Database
set newDB = CreateDatabase("NewDB.mdb",dblanggeneral)
Any help on this would be greatly appreciated.
mdb from within the vba code of a form on another mdb.
A previous posting suggested using the CreateDatabase
method of the Application object. So I looked up the
Application object in the help, but no CreateDatabase
method was listed for the Application Object. I did find
the DAO CreateDatabase Example in help, but when I tried
it, neither the 'Database' object (in the dim statement)
nor the CreateDatabase command was not recognized by the
compiler.
dim newDB as Database
set newDB = CreateDatabase("NewDB.mdb",dblanggeneral)
Any help on this would be greatly appreciated.