Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ANSI SQL Statements in VFP
Message
From
14/03/2000 15:47:05
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00345519
Message ID:
00345527
Views:
18
Joe,

> lcName = [Bob "Skip" O'Hara]
>
> lcSql = "UPDATE nametbl SET name = "+lcName+" WHERE id = 5"
>
> &lcSql

I think you want:

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

or

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

Those should work for VFP -- I haven't tested with SQL Server.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform