Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Syntax Error' in Local views
Message
From
22/02/2000 13:11:10
 
 
To
21/02/2000 18:56:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00335122
Message ID:
00335486
Views:
12
>Hi all,
>
>I'm trying to create updatable local views from a common code table. I seem to keep getting a 'Syntax Error' as soon as I make any data change in the view. There is no way to exit except by an 'End Task'.
>
>I'm using VFP 6.0/SP3. No code is involved in what I'm trying. This is all interactive...
>
>Any assistance would be greatly appreciated.
>
>Henry

This one is almost always caused by a field with the same name as an SQL key word. Common offenders are DESC, GROUP, ORDER etc. When VFP generates and executes the SQL that updates the view, the SQL engine gets confused by "keywords" appearing in the wrong place in the statement. Key lesson:

NEVER use an SQL keyword as a field name. VFP keywords you can usually get away with...
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform