G
gb
Hello
I use a subform on my main form and can double-click an entry within it to
view all of the information in that record in a separate form that pops up.
If a user edits the information in this new form, a button is supplied to
save and close the record.
I would like a button that closes the form without saving any changes made,
too. I have found that a button that just closes the form (DoCmd.Close)
saves the record nonetheless.
How do I get the code to check whether any changes were made, and if so, to
discard them and close the form?
Thank you for your help
gb
I use a subform on my main form and can double-click an entry within it to
view all of the information in that record in a separate form that pops up.
If a user edits the information in this new form, a button is supplied to
save and close the record.
I would like a button that closes the form without saving any changes made,
too. I have found that a button that just closes the form (DoCmd.Close)
saves the record nonetheless.
How do I get the code to check whether any changes were made, and if so, to
discard them and close the form?
Thank you for your help
gb