Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another ADO Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00618990
Message ID:
00619007
Vues:
15
Try to pass SET NULL OFF before insert.

>When I run this code;
>
>
>oCommand = CREATEOBJECT("ADODB.Command")
>
>cCommandString = "insert into bspotln (docid, boid) values (" +;
>TRANSFORM(nDocId) + "," + TRANSFORM(nNewId) +")"
>
>WITH oCommand
>  .CommandText 			= cCommandString
>  .ActiveConnection 	= This.oConnection
>  .CommandType 			= adCmdText
>ENDWITH
>
>oCommand.Execute
>
>
>I get the error "Field 'xyz' does not accept null values". Is there a way
>to override this or turn it off? I dont want to have to fill in ALL the
>fields to add a record.
>
>Thanks
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform