CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Multi field form validation

Print topic Send  topic

Author Message
Headhunter
Posted: 02/05/2003, 11:43 PM

Hello all,

I want to make a form validation that when a certain field is filled in ther must also another field filled in.

For example, I have 3 fields, f1, f2, and f3.

In my updatable grid I want when f2 is filled in that also f3 is filled in.
How can I do this?

Thanx
jd
Posted: 02/12/2003, 9:59 PM

select the data tab of the properties window for the form field you want to validate. Go to the validation rule and enter something like this.
(f2 = "" and f3 = "") or (f2 <> "" and f2 <> "")

The validation rule is set up as an if not()then statement so if the validation test you supply returns false the validation fails. If the test returns true the the validation passes. Don't forget to supply validation text on the next line of the properties.
Anyone
Posted: 02/12/2003, 10:36 PM

Does this work

   


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.