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

 URL lookup in SQL Where for Grid

Print topic Send  topic

Author Message
RoyBaird

Posts: 115
Posted: 09/24/2006, 9:58 PM

I have an encrypted field I pass in the url from the "add" page to the "list" page. I need to do a lookup on the database to get the real value for the Grid list. I have no problem in the Record page, but I don't know what the object is in the Grid. Here is the Record custom code: This works perfect.

Dim URL_name
Dim Lookup_name
URL_name = CCGetParam("Name", Empty)
Lookup_name = CCDLookUp("Name", "AS_team", "Encrypt=" &_
DBConnection1.ToSQL(URL_name, ccsText), DBConnection1)

Tasks.Name.Value=Lookup_name <----- what should this be????

Thanks!!!
_________________
Roy
View profile  Send private message
Oper


Posts: 1195
Posted: 09/26/2006, 10:56 AM

Lookup_name (only, that the name of teh variable receiving the value)

but maybe your script i teh problem cuas ei gest the Encrypt value is alphanumeric?

Lookup_name = CCDLookUp("Name", "AS_team", "Encrypt=" &_
DBConnection1.ToSQL(URL_name, ccsText), DBConnection1)

you will need to add apsotrophe to the Search
Encript= SingleAptropheHere " &
DBConnection1.ToSQL(URL_name, ccsText) & " SingleAptropheHere "

Substitued the word SingleAptrophehere for '

maybe
Let me know.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
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.