Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use ? in variables for UPDATE/INSERT statements?
Message
From
26/06/2007 09:51:19
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to use ? in variables for UPDATE/INSERT statements?
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01235643
Message ID:
01235643
Views:
67
Hello Everyone..

Listed below is a sample code to update a table by using SQL passthrough statement.
If someone keys in ? mark as part of the reference field, it causes a syntax error and program fails. Can someone guid me how to overcome this situation ?


*-- Sample code
cTemp.doc_numb = "0000212-00"
cTemp.doc_refr = "Gadgets Size ? "

lcSQL = "INSERT INTO cDetail (doc_numb, doc_refr) +;
" VALUES(?cTemp.doc_numb, cTemp.doc_refr) "
=ExecuteSQL(lcSQL)


Thank you in advance...

Raza Malik
Next
Reply
Map
View

Click here to load this message in the networking platform