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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditionally prevent moving to another record

Status
Not open for further replies.

Eutychus

Programmer
Nov 14, 2007
61
US
I want to prevent users from leaving a record on a form based on the values in the controls on the form. I can use the form's AfterUpdate event to check the values in the controls, but I can't find a way to stop moving to another record or closing the record if the values in the controls are missing. The conditions for which fields have to have values is a little complex. But I need to be sure certain fields have been completed based on values in other fields before moving to the next record. I plan to use VBA to do this.

Can you help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top