CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Errors.Count

Print topic Send  topic

Author Message
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 :-/
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.