Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert Into Command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00663463
Message ID:
00663469
Vues:
15
Hi Ger,

Assuming that lnAccess is a valid connection, I think you're missing a parentheses. Try the following:

SQLEXEC( lnAccess,"INSERT INTO mytable (mytable.no, mytable.batch, mytable.filename) VALUES (?tmpdata.no, ?tmpdata.batch, ?tmpdata.filename)", "Mytable" )

and see if that doesn't work better. Also, I don't think you need the last "Mytable" argument unless you're dealing with sending -output- to a VFP cursor (you're inserting, not querying).

HTH.

You wrote:
>I have the following code for inserting a record into
>an access table, but nothing happens.
>
>SQLEXEC(lnAccess,"INSERT INTO mytable mytable.no,mytable.batch,mytable.filename) VALUES (?tmpdata.no,?tmpdata.batch,?tmpdata.filename)", "Mytable")
>
>Anyone any ideas?
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform