I have some tables with just one record. If I open the form to edit and I cancel without making any changes to the record, I get the warning that changes will be lost.
Where can I do a test that checks if there are any changes and skip the warning if there are none?
It is the natural behavior for the update form to not prompt, if not changes have been made.
Look at the code to see if any fields are being changed after the PrimeUpdate method is called in thisWindow.Init().
Anything odd about the file structure or fields?
You can also set ThisWindow.CancelAction = Cancel:Cancel. This will cause it to never prompt that changes will be lost, even if the user made changes.
The problem was that I read the record after calling the PrimeUpdate method. Thanks for the hint.