D
Dan Goldman
I'm trying to use the [database] argument of the CreateForm function, to
specify a template from a library db, but can't get it to work.
Executing this code from the library db:
CreateForm CodeDb.name, strTemplate
I get the error:
Runtime error '7870':
Microsoft Access can't find the database
'C:\OFFICE2K3\OFFICE11\devutils.mda.'
Check the database name (and path, if specified) to make sure you entered it
correctly.
I'm using Access 2003.
I found that the Access 97 help on CreateForm adds the following information
that doesn't appear in the 2003 help:
"Note that if the database specified by the database argument is not the
current database, that database must be open as a library database"
So I tried adding a reference to the library db from the current db (I was
previously running the code from the library without referencing it, just
using the Application.Run method), but still no go.
Can anyone help?
TIA,
Dan.
specify a template from a library db, but can't get it to work.
Executing this code from the library db:
CreateForm CodeDb.name, strTemplate
I get the error:
Runtime error '7870':
Microsoft Access can't find the database
'C:\OFFICE2K3\OFFICE11\devutils.mda.'
Check the database name (and path, if specified) to make sure you entered it
correctly.
I'm using Access 2003.
I found that the Access 97 help on CreateForm adds the following information
that doesn't appear in the 2003 help:
"Note that if the database specified by the database argument is not the
current database, that database must be open as a library database"
So I tried adding a reference to the library db from the current db (I was
previously running the code from the library without referencing it, just
using the Application.Run method), but still no go.
Can anyone help?
TIA,
Dan.