var query = 'INSERT INTO Table1 (Ticket_No, Date, Model) values ("Ticket_No", "Date", "Model")';
Ticket_No.rawValue = ""; // clear after inserting
Date.rawValue = "";
Model.rawValue = "";
But when I click button nothing saved in database. When I manually enter data in database table and then run form I can see data in the according form fields. So I'm thinking connection is fine. How to fix problem and save entered? And how to create code for UPDATE button to update existing record?