Before Update Control

The BeforeUpdate event occurs when you attempt to save the record or leave the control after making changes. This event applies to text boxes, combo and list boxes, option buttons, check boxes, and bound object frames. Use this event to validate the entry.

For example, the combo box control in the Site Information section of the Asset Management sample form causes Microsoft Access to display a custom message if the value of the cboSiteId combo box control is Null. To cancel the Update event, the Cancel argument has been set to True.

0 0

Post a comment