CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 CCS + ASP SQL Question

Print topic Send  topic

Author Message
Brian Bermingham
Posted: 08/07/2002, 8:24 AM

Can anybody tell me why this is not working properly?
As it stands all the values are inserted into the Delegates table except the Last_Name.
It seems to be the fact that Employee.Last_Name.Value is text.
If anybody has any suggestions I would be very grateful, I've spent hours trying to get this to work.


Dim strSQL

strSQL = "INSERT INTO Delegates ( Course_ID, HR_Number, Employee, Last_Name, First_Name, Manager_Name, Accepted ) "
strSQL = strSQL & "SELECT ""02/07/04-13"" AS Course_ID, "
strSQL = strSQL & Employee1.HR_Number.Value & " AS HR_Number, "
strSQL = strSQL & "-1 AS Employee, "
strSQL = strSQL & CCToSQL(Employee1.Last_Name.Value,"Text") & " AS Last_Name, ""Brian"" AS First_Name,"
strSQL = strSQL & """Man"" AS Manager_Name,"
strSQL = strSQL & " -0 AS Accepted;"

DBcnnTraining.Execute(strSQL)


Thanks
Brian
Nicole
Posted: 08/08/2002, 1:57 AM

Brian,
have you tried to print Last_name value? Please try:
response.write CCToSQL(Employee1.Last_Name.Value,"Text")

you should get the printed string like:
'last_name value'

Are you able to print just value without applying CCToSQL() function? Do you get correct value printed?
Brian Bermingham
Posted: 08/08/2002, 2:38 AM

Nicole

Thanks for the reply.
You were right CCToSQL(Employee1.Last_Name.Value,"Text") was empty

However this morning, after a nights sleep I resolved the problem by approaching it in a completely different way. By letting CCS do the work.
It's very easy to get stuck with a single train of thought when the solution is much simpler.

I'll be looking for the simpler solutions in the future they are useually the best.

Again Thanks for your time.

Brian


   


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.