Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC() Command
Message
From
31/05/2002 06:30:25
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
To
31/05/2002 04:59:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00663309
Message ID:
00663319
Views:
11
>I have the following code
>
>SQLEXEC(lnAccess, "UPDATE mytable SET mytable.name = 'Test Name' WHERE (mytable.filename = tmpdata.filename)","Mytable")
>
>
>I have a foxpro table tmpdata which was created by importing
>data from an access table mytable. I change some values and
>want to write back to the access table. But nothing happens.
>
>The access table
>
>Filename Text 50
>
>Foxpro table
>
>Filename Char 50
>
>
>Anyone any ideas?


Hi,

Change the update statement to
SQLEXEC(lnAccess, "UPDATE mytable SET mytable.name = 'Test Name' WHERE mytable.filename = ?tmpdata.filename")
Your original statement will look for the "tmpdata" table in database instead of in Fox.

:) Wilfred
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform