from mdb how to openForm a form in a referenced mde file

G

Guest

From an mdb file I can call procedures and functions from a referenced mde
file, but I cannot figure out how to open forms or reports that are in the
mde file.
my mdb file Code:
docmd.openForm "Form1"
The Form1 is in the mde file, yet I get the error,
"the form name Form1 is mispelled or referes to an object that does not exist"
Is prefixing required, or am I missing simething else?
Thanks,
 
R

Rick Brandt

Jay said:
From an mdb file I can call procedures and functions from a
referenced mde file, but I cannot figure out how to open forms or
reports that are in the mde file.
my mdb file Code:
docmd.openForm "Form1"
The Form1 is in the mde file, yet I get the error,
"the form name Form1 is mispelled or referes to an object that does
not exist" Is prefixing required, or am I missing simething else?
Thanks,

Not positive, but I believe you will need a public function in the MDE that
opens the form for you. You can make this generic so that you can pass the
form name as an argument and then you only need to build one function.
 
G

Guest

This feature of A95 was disabled in a service pack. There was a well
known work around that enabled you to alter your forms so that they
could be opened, and that was disabled in A2003.

For compatibility with A2003, you will have to use a public function
to open your forms.

(david)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top