CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Validation Bug in CCS Beta4

Print topic Send  topic

Author Message
Harry
Posted: 05/25/2002, 8:39 AM

The Validation is not working properly in Code Charge Studio Beta 4. Whenever If I comment the line out ' If EditMode Then Where = " AND NOT (" & DataSource.Where & ")"
It Then Works. The only Drawback is that works great for a new record but if I Edit the record to change the password Etc.. It tells me that the Login Name is taken already.
I am using a ODBC Datasource with MSACCESS. I am using Asp 3.0 With Templates
Here is the Code below.
Function Validate()
Dim Validation
Dim Where
If EditMode Then Where = " AND NOT (" & DataSource.Where & ")"
If CInt(CCDLookUp("COUNT(*)", "Users", "Account=" & DBzdotdata.ToSQL(Account.Value, Account.DataType) & Where, DBzdotdata)) > 0 Then _
Account.Errors.addError("The value in field Login Name is already in database.")
Validation = ValidatingControls.Validate
CCSEventResult = CCSEvents("OnValidate")
Validate = Validation And (Errors.Count = 0)
End Function
'End Validate Method
Thanks
Harry
CodeCharge Support
Posted: 05/27/2002, 12:13 AM

Harry,
this problem will be solved in next CCS release. Please watch the announcements.

   


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.