Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default value not working from OLE connection
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Default value not working from OLE connection
Divers
Thread ID:
00763815
Message ID:
00763815
Vues:
56
I have a VFP 7 DBC setup with a stored procedure that provides an autoincrement function. From within VFP, if I open the table and insert a record, either by ctrl+y or using the insert command, the key field displays the next available id correctly. (I have a primary index based upon the value as well).

However, if I open the table from ASP.NET using OLE and attempt to insert a record, I get "Index does not accept NULL" error message. I have null values enabled for every field in the table, but the message still happens. Currently, editing a record through ASP.NET & ADO is no problem; only inserts. Is this something with the nature of the VFP ADO driver or something else? How can I get an autoincrement to work via ADO?

My thanks to any suggestions!
Steve Howie, owner
DaSH Technology
Denver, CO
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform