Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record Insertion on Access DB not Inserted...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00932253
Message ID:
00932256
Vues:
17
Hi Jojo,

Try:
nTOTCUST=0
cBarcode="test"
= SQLEXEC(lnConnHandle, "INSERT INTO CUSTOMER (Customer_id, Barcode);
VALUES (?nTOTCUST, ?cBarcode)")
MartinJ

>Hi to All,
>
>I used the ff. code inserting records on an MS SQL Server DB
>and works fine, but under MS Access, it doesn't insert a new row of record?
>Anything missing with my code below?
>
>
= SQLSETPROP(lnConnHandle, 'Transactions', 2)  && Manual transactions
>= SQLEXEC(lnConnHandle, "INSERT INTO CUSTOMER (Customer_id, Barcode);
>VALUES (@nTOTCUST, @cBarcode)")
> =SQLCOMMIT(lnConnHandle)
> = SQLDISCONNECT(lnConnHandle)
> Messagebox("Customer Added!",0+64,"",1900)

>
>I presided using ? on my memvar but still the same? Any Ideas...
>Am I lacking something in my code?
>
>Thanks...
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform