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

  • Thread starter Thread starter Guest
  • Start date Start date
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,
 
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.
 
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)
 
Back
Top