CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Validation not working

Print topic Send  topic

Author Message
jmiller79

Posts: 1
Posted: 07/20/2007, 7:37 AM

Not sure why this is not working, Anyone have any input..

pretty much looking to validate Name and Company, If the 2 already exists in the db then do not insert the record and show the error

I have this on my before insert

  
Dim whname    
Dim whcompany   
Dim intMatch    
    
whname = wh_users.wh_name.Value    
whcompany = wh_users.wh_company.Value    
    
intMatch = CCDLookUp("count(*)", "wh_users", "wh_name = " & whname & " AND wh_company = " & whcompany, DBConnection1)    
    
If Len(intMatch) > 0 Then   
wh_users.Errors.AddError "Already in DB."    
End If  
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.

Web Database

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.