Form Dirty

  • Thread starter Thread starter William Benson
  • Start date Start date
W

William Benson

Hi,

I have some form in change event for each text box on form which, on change,
will check if form is dirty and if so, hide the "Add New" button and replace
with "Save" and "Cancel" buttons. Problem is, if user hits Escape, then
really no change was made but there is no "Textbox1_Unchange" event to use
to undo the changes I have made to controls.

If I used the timer event to keep checking if the form is dirty, and if not,
assume that the user canceled his change? that's a lot of processor
overhead, is there another way?

TIA,

Bill
 
In Acces 2000 and later, there is a Form_Undo event.

This event fires reliably in any bound form when the record is undone by the
user.

(There is also a Form_Dirty event, but that works slightly differently in
different versions if the record is dirtied programmatically.)
 
Thanks Allen!!!!
Allen Browne said:
In Acces 2000 and later, there is a Form_Undo event.

This event fires reliably in any bound form when the record is undone by
the user.

(There is also a Form_Dirty event, but that works slightly differently in
different versions if the record is dirtied programmatically.)
 
Back
Top