I have a form "Customer Details" with a tab control. The header information in this form is from the Customer table
The tab control has 3 tabs.
- The 1st and 3rd tabs are also displaying information from the Customer table.
- The 2nd tab "Orders" consists of subform "Order Listing". Data is from the Orders table.
When changes have been made to any of the fields in the header, 1st tab or 3rd tab AND move among these three sections, none of the changes are updated to the Customer table until the Save button is clicked. This is working as intend.
However if one make the changes and click onto the 2nd tab, all the changes are committed to the database. Is there anyway to catch this and stop the update in the database? We want the user to use the Save button to commit changes made. We also have a Cancel button to undo any changes made on the form.
I have tried using MessageBox to display the values in the OnClick event in both the Tab Control and at the page tab level. However it seems the data has been committed even before the OnClick event.
The tab control has 3 tabs.
- The 1st and 3rd tabs are also displaying information from the Customer table.
- The 2nd tab "Orders" consists of subform "Order Listing". Data is from the Orders table.
When changes have been made to any of the fields in the header, 1st tab or 3rd tab AND move among these three sections, none of the changes are updated to the Customer table until the Save button is clicked. This is working as intend.
However if one make the changes and click onto the 2nd tab, all the changes are committed to the database. Is there anyway to catch this and stop the update in the database? We want the user to use the Save button to commit changes made. We also have a Cancel button to undo any changes made on the form.
I have tried using MessageBox to display the values in the OnClick event in both the Tab Control and at the page tab level. However it seems the data has been committed even before the OnClick event.