Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax error.
Message
From
09/02/2002 02:22:02
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00614678
Message ID:
00617850
Views:
18
Hey Doug,

I have this original code that has an error:

cSQL = [UPDATE ACCOUNTING!ITEMS SET desc = "] + ALLTRIM(cDesc) + ["] + [,] +;
[ saleprice = ] + STR(nPrice) + [,] +;
[ WHERE itemid = "] + Alltrim(cItemid) + ["]

the desc field is the reserved word. Are you suggesting that I change it to the following code below?


cSQL = [UPDATE ACCOUNTING!ITEMS SET 'desc'= "] + ALLTRIM(cDesc)+ ["] + [,] +;
[ saleprice = ] + STR(nPrice) + [,] +;
[ WHERE itemid = "] + Alltrim(cItemid) + ["]

the 2nd set code does not work and produces the same error message..
Please clarify what you mean...
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform