For the event
that you want to trigger the validation, set the
event property
to the name of the macro. For example, to trigger the validation when a control is updated with changed data, set the BeforeUpdate event property of the control to the name of the macro.Note To validate data before a
record as a whole is updated, attach the validation macro to the form's
BeforeUpdate
event rather than to the control's BeforeUpdate
event.