When I use the AddNew() method of a recordset the new record has all the fields set to .NULL. Unfortunately the tables I am accessing do not allow NULL values in the fields. Can you tell me please is there a simple way to change this behaviour of the recordset so that the fields are set to empty values instead such as "", 0, {} etc Otherwise I am guessing that I would have to write a routine of my own that changes any null values that haven't been set by the client. At the moment when I call the Update() method of the recordsetit throws a pretty general exception saying something went wrong. I am guessing that it is because of the NULLs.
As a bit of background I am trying to use ADO to access VFP native tables so that I can easily use the recordsets as business entities that can be passed between my classes without having to specify dozens of parameters in the method calls. I am hoping to also pass these business entities between my COM server and the calling client application.
Regards
Darren