CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 php to .asp, Help

Print topic Send  topic

Author Message
kendra M
Posted: 06/17/2004, 8:50 AM

CC - Check if exists before insert

FOund this on Old Forum, I need to do the same thing but in .ASP. anybody have any clues, Thanks


Author Nicole
Date Created 5/7/2002 5:01:10 AM
Message Vince,
create Validation event and use lets say dlookup function to find if the record exists, e.g.:
$exist = dLookUP("table_name", "count(*)", "code_field_name = ". ToSQL(get_param(entered_code_field_name), "Number");
if ($exists < 1)
sFormNameErr .="In valid code <br>";

If no records exist user will get error message.

Then select 'Create Validation Rule' flag on form properties to make event work.


peterr


Posts: 5971
Posted: 06/17/2004, 1:18 PM

You could probably combine this:
http://docs.codecharge.com/studio/html/ProgrammingTechn...gleDBValue.html
with this:
http://docs.codecharge.com/studio/html/ProgrammingTechn...Validation.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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