I have a form that has a button to print. The form has the allow data entry property set to "yes" so the form is always set to "new" record. In other words you cannot navigate to other records in the form. I made it like this so the user cannot go back to old records to delete or edit them. I also set the print button to close and reopen this form to sort of refresh it, so its blank again after they print it. So the print button will trigger the print window where it has some settings for the print job and the user can then click on print or cancel. If they click print, everything does what I want it to do. The record will print and then it will save into the database table because the macro will close the form and then another macro will open it back up blank and ready for the next new record. However, if they click cancel because they want to make a change to the record before they print, it will still go through the same process and save the record and refresh the form. I do not want this to happen if the user clicks on cancel. How do you get this to stop?
Thanks.