Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform Problem with Cancel Update

Status
Not open for further replies.

vfisher

Programmer
Apr 15, 2002
40
US
I am working with Access 97. I have a subform(continuous form) which has 4 data entry fields. If the user starts entering a record, then deletes all the data in the 4 fields I don't want to save the record.

In the BeforeUpdate event of the subform I have code to check for null values in all the fields and if so, cancel = true and go exit_form_beforeupdate. Well, it doesn't update the record, but I can't get out of the beforeupdate event or even set the focus on the main form.

I'm sure this is something ridiculous, but I just can't figure it out.

Any help is greatly appreciated.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top