Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ANSI SQL Statements in VFP
Message
From
14/03/2000 15:36:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Using ANSI SQL Statements in VFP
Miscellaneous
Thread ID:
00345519
Message ID:
00345519
Views:
52
Here's the problem in VFP with an SQL Update Statement.

Person's name = Bob "Skip" O'Hara
Id = 5

You wish to create an SQL update statment to update a VFP table.

Here's the code:
lcName = [Bob "Skip" O'Hara]

lcSql = "UPDATE nametbl SET name = "+lcName+" WHERE id = 5"

&lcSql

The macro causes an error to occur.
What can be done to get around this probelm? My code is being used for both VFP and SQL.

Any thoughts......
Next
Reply
Map
View

Click here to load this message in the networking platform