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:
00619007
Views:
14
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform