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
Titre:
Another ADO Question
Divers
Thread ID:
00618990
Message ID:
00618990
Vues:
57
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
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform