Error Trapping - 2779 Validation rule

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a form that contains 2 fields with validation rules - Postcode and
Account Number, both of which are set to capitals and other criteria.

I have an error trapping routine in Form_Error to pick up on error 2779 and
display a message, but I would like to be able to identify which field caused
the error and give an accurate prompt to comply with each fields different
validation rules.

many thanks in advance.
 
If the user is entering the data (i.e. you are not poking it in
programmatically), Form.ActiveControl should give you the name of the
control that triggered the error.
 
Back
Top