Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem inserting records into access table
Message
 
À
11/12/2003 16:22:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00858361
Message ID:
00858563
Vues:
13
Most likely, the target access table "mytable" has more than two fields. So if you insert the new record indicating only two fields, those 'other' fields got null values. And null is not allowed for them.

>Hello
>I need to read and write a table contained in an MDB. I have gone the ODBC way, I can connect and read records via sqlexec() with no trouble. However, if I try to insert a record with:
>
>res = sqlexec(myconn, "insert into mytable (field1,field2) values (1,2)")
>
>it returns -1.
>The error message is
>"1526 Connectivity error.... [ODBC Microsoft Access Driver] Numeric value out of range (null)
>I tried listing all fields of the target table, same result. There are no nulls around..
>Any ideas?
>VFP7 SP1 on Win XP
>
>Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform