Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modifying Microsoft Access Tables
Message
De
19/07/2004 11:31:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00920636
Message ID:
00925779
Vues:
30
This is the code I am using, the UPDATE appears to work fine, but not the INSERT, I get a -1 ,
I´ve also tried it without the SQLPREPARE, but to no avail.




lnconn=SQLCONNECT("saeacces")
? lnconn
?SQLPREPARE(lnconn, "INSERT INTO inve01(num_reg, clv_art, status) VALUES (79, '12100', 'A')")
?SQLEXEC(lnconn)
SQLEXEC(LNCONN,"UPDATE INVE01 SET UNI_EMP = UNI_EMP+11 WHERE CLV_ART = 'HUESO'")
?SQLCOMMIT(lnconn)
?SQLEXEC(lnconn,"select * from inve01")
BROWSE
?SQLDISCONNECT(lnconn)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform