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

 CCDLookup and Record form Event

Print topic Send  topic

Author Message
Don_S

Posts: 50
Posted: 12/07/2005, 11:22 AM

I need to use CCDLookup to populate a textbox before data is written to the database. The CCDLookup is based off of variables input into textboxes on the Record form so the lookup has to take place after the page has loaded but before the data is sent out. I tried using the onClick event on the "Add" button but that did not work. I found out by searching the Forum that you can't do it that way. Here's the lookup code I have:
tbl_Calls1.Tot_Time.Value=CCDLookup("Time_Desc","tbl_Times","Time_Int=" & tbl_Call1.Total_Time.Value , DBConnection1)

Where do I need to place it to have it work?

Thanks,
Don
View profile  Send private message
wkempees


Posts: 1679
Posted: 12/07/2005, 11:27 AM

tbl_Calls1.Tot_Time.Value=CCDLookup("Time_Desc","tbl_Times","Time_Int=" & tbl_Call1.Total_Time.Value , DBConnection1)

There is an "s" missing within the CCDLookup, is that on purpose or the cullprit?
& tbl_Call#1.Total
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Don_S

Posts: 50
Posted: 12/07/2005, 11:44 AM

The "s" missing was a problem but I still need to know where the event should fire from. Thanks Walt.

Don
View profile  Send private message
Don_S

Posts: 50
Posted: 12/07/2005, 1:40 PM

Update:

The missing "s" in my original code WAS the problem. Adding the code to the Records "Add" button onClick event worked perfectly.

Don
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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