Subform "OnEnter" event interfering with parent form navigation buttons

E

EvilSewingMachine

I have a subform that displays data pertaining to the parent form's
current record. I set it up so that OnEnter opens another form where
the subform data came from, then sets the focus back to a control on
the main form. I set the focus elsewhere to "exit" the subform so that
I could reuse the subform OnEnter like OnClick. Thusly a repeatable
button.
The problem is, after the subfom button is used the main form record
navigation buttons run the OnEvent code. After I close and reopen the
database the navigation buttons work as they are supposed to. What am
I missing.
 
E

EvilSewingMachine

After working on it most of the day................ I realized my
entire form is built in the form header. I don't understand why but it
was running the OnEnter VB code. After moving everything and getting
rid of the header everything works just fine.

A newbie mistake.
 

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