MyDAC 4.X : TMyquery.Options.Requiredfields and AutoInc type fields
Posted: Mon 05 Sep 2005 13:52
Hi,
Is there a way to disable the Required fields option with the AutoInc type fields ?
Create a table with an autoinc field (+ other test fields set to NOT NULL).
Build a delphi project with MyDAC 4.x.
Set the TMyquery.Options.Requiredfields to TRUE
Add a grid, navigator bar... Compile and run.
Insert a new record, fill all fields (except the Autoinc field).
Post : exception is raized : field 'My AutoInc field' must be filled
Is there a way to disable the Required fields option with the AutoInc type fields ?
Create a table with an autoinc field (+ other test fields set to NOT NULL).
Build a delphi project with MyDAC 4.x.
Set the TMyquery.Options.Requiredfields to TRUE
Add a grid, navigator bar... Compile and run.
Insert a new record, fill all fields (except the Autoinc field).
Post : exception is raized : field 'My AutoInc field' must be filled