Jeanette Cunningham replied to al416 via AccessMonster.com
21-Nov-09 02:43 PM
If you are trying to force the user to fill in all the required fields
before the record is saved, then the before update event is the way to go.
Once the user tabs or mouses out of the subform, the subform data is saved
to the table. So if you do not catch the missing fields on the before update
event of the subform, you have no way of forcing the user to complete the
required fields.
A similar thing happens with the main form - once the user tabs or mouses
into the subform, the main form data is saved to the table.
Maybe you could try with an unbound form, and do the test for required
fields on the close button - this would be more work, but you could set it
up so that you did not save any data to the tables unless all required
fields were completed.
Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia