Pb opening a Form which includ Sub-forms

A

Alain

hello everyone

I am migrating an MDB application to an ADP an I can't open correctly my
Main form

From my SwitchBoard when I click on the Button in charge of opening my main
form,
I execute the following line:
DoCmd.OpenForm RS![MyMainForm]

from this line my ADP Code is not running the same way than the MDB Code


In my MDB application the next executed lines are :
In Sub-form 1 ---> On Event : Form_Current
In Sub-Form2 ---> On Event : Form_Open
etc .. the execution goes alternatively to the Events: Form_Open et
Form_Current of every Sun-forms included in MyMainForm
Then I run the following line in MyMainForm
--> On Event : Form_Open (Where I run a request ..)

In my ADP Code after the
DoCmd.OpenForm RS![MyMainForm]
I directly run the code --> On Event : Form_Open in MyMainForm

Every Sub-Form are "ignored" by jumping directly to the MyMainForm Code.

I can't find what is missing or wrong ...
any help wil be welcome ...

best regards
Alain
 

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