Board index » delphi » D6 sqldataset -MySQL with auto_increment field

D6 sqldataset -MySQL with auto_increment field

I have D6 SQLDataset connect to MySQL ; primary key(OrderNO) in MySQL is
auto_increment field

Dataset -SQLProvider-Clientdataset . Persistent field in clientdataset
property "AutoGenerateValue" is set to "arAutoInc"

when applyupdates(0) , I got the error OrderNO ( the auto_increment field)
must have value.

How do I fix this ?
Many thanks

 

Re:D6 sqldataset -MySQL with auto_increment field


Did you make the field marked has not required in the SQLDataset?

Other Threads