Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another ADO Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00618990
Message ID:
00619000
Views:
8
>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.

You could add the NULL flag to all the fields in the table. Is xyz a normal field, or a primary key?
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform