Cancel changes to form when you have moved focus to another?

Joker2

Board Regular
Joined
Mar 22, 2006
Messages
117
I have a form that the user populates, they then click button to move to another form to add additional data but the original form stays open (I need results from the 2nd form to be included on the first form before the record is saved.)

However if the user needs to cancel out without saving changes I need both forms to close cancelling any changes. I can do this to the form that had the focus but I can't seem to close the original form without saving changes. The record that is displayed on the original form isn't put into the table when the user moves to the 2nd form so I assumed the normal Me.Undo would work but it doesn't! Any ideas? I did think about the delete record query but as the record isn't yet in the table I don't think this would work?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,195,619
Messages
6,010,736
Members
441,567
Latest member
Flitbee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top