gmarkwood
Posts: 10
|
| Posted: 10/15/2004, 12:42 PM |
|
I am trying to get an if statement based on error count to working.
I have 4 fields that have "required" on them. I also have the following OnValidation code.
If any of the above fields are blank, I was hoping the statement email_Record.Errors.Count, would have a number in it, but I always get 0.
Do I have this in the correct location and am I using this correctly?
Function email_record_OnValidate() 'email_record_OnValidate @22-31C66E62
'Custom Code @34-73254650
' -------------------------
if email_Record.Errors.Count < 1 then
email_record.email_Address.value = "OK"
else
email_record.email_Address.value = "not OK"
email_Record.Errors.addError("email address is not OK")
end if
email_record.Errors.adderror(email_Record.Errors.Count)
'End Custom Code
End Function 'Close email_record_OnValidate @22-54C34B28
Thanks for any help or direction, Mark Wood
|
 |
 |
|