Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update SQL
Message
 
 
To
20/07/2003 12:03:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00811836
Message ID:
00811838
Views:
33
Gaylen,

You have to pull the value to a memvar before you use it in a SQL command. This is because the SQL actually executes outside the form method.

>How do I reference thisform.xxx.value in an update?
>
>
>update tablex set field1 = thisform.xxx.value
>
>
>VFP thinks thisform.xxx.value is an alias. I can assign the variable to a memory value before the insert and use it and it works fine. I've used (thisform.xxx.value) and macro substitution to no avail.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform