Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TableUpdate returns FALSE when Desc field changed. Why?
Message
From
24/11/1999 08:49:33
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00294733
Message ID:
00294940
Views:
21
>Eric,
>
>The field name is DESC and the field is updatable and the AERROR() returned:
>
>10 - "Syntax Error"
>
>I will change the field name to something else and try again. I gave up last night and didn't get back on till this morning.
>
>Thanks

I am 100% sure that this is the problem. VFP is usually ok with field and variable names that are VFP keywords, but using an SQL keyword (DESC is short for descending) as a field name is bad news because the SQL engine can't make sense of it. (As you know, doing a TABLEUPDATE on a view causes VFP to build and execute an SQL UPDATE statement, inevitable containing your field name).
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform