Good morning everyone.
I am developing a small application on Lazarus 2.0.8 using sqlite and I need some information.
I am using these components:
TSQLite3Connection
TSQLQuery
TSQLTransaction
TDataSource
TDBGrid
TDBNavigator
1 - If in the Grid I create a new record but do not fill in at least one column the post is not successful and the system signals me "No insert query specified and failed to generate one. (No field found for insert or update-statement found) "
How to handle this situation?
2 - In a table with a UNIQUE integer field, if I try to insert a record with a duplicate field it is not inserted (correct reaction) but how do I manage the situation and reset the query or transaction without having to close the form?
In practice how do I handle the error cleanly?
Thanks in advance