Subform "OnEnter" event interfering with parent form navigation buttons

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