Subform and mainform command buttons

  • Thread starter Thread starter WC Lo
  • Start date Start date
W

WC Lo

My project is still in programming stage.
I have a main form with a subform, just like the kind of
Order and Order Detail screen. I have defined main and
subform and a few commond buttons on main form. I have
not defined the commond buttons yet. That means no
events on ON CLICK property of the mainform. But after I
changed the data in subform and click and "empty" command
button on mainform, the subform will have updated the
associated tables.

Can anyone help, please.
 
In order to click the button on the main form, the focus must move to the
main form. When the focus moves out of the subform, the record is saved. You
cannot change the way this works.

If you need to run any validation before the subform record is saved, use
the form's Before Update event.
 
Back
Top