Saud
Posts: 15
|
| Posted: 01/29/2006, 10:45 AM |
|
Hi All,
I wonder which executes first, the component-level validations or the recordform-level validations?
I have a record form that have 3 (required) fields. One of those fields is an email field (which will be validated against the built-in email validation regx).
This record form is not connected to any table, so it does not really do any insert, update, or delete processes. I want to use the (On Validate Event) to check if there are no errors and then only do some actions.
I use the following code in the OnValidate Even:
If ContactUs.Errors.Count = 0 Then
SendEmail
End If
The problem with this is that if all fields are supplied, the (SendEmail) function is called BEFORE the email validation action!
any help in this?
Thanks
Saud
|