Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC() Command
Message
De
31/05/2002 06:30:25
Wilfred Chan
Bnp Paribas Hong Kong Branch
Hong Kong, Hong Kong
 
 
À
31/05/2002 04:59:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00663309
Message ID:
00663319
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform