Undo Button

H

HOSPITAL

I have a form with multiple Text Boxes and Combo Boxes
and need a good way to put an undo button on the form
so it erases or undoes the last Boxes change only. If
I use the toolbar Undo Button it undoes the whole record.
Help!
 
M

Marshall Barton

HOSPITAL said:
I have a form with multiple Text Boxes and Combo Boxes
and need a good way to put an undo button on the form
so it erases or undoes the last Boxes change only. If
I use the toolbar Undo Button it undoes the whole record.


Why not just use the Windows standard Esc key? Hit it once
and it undoes the current control, twice undoes all the
changes to the currrent record.

If you feel you must use a button, then you can use

Screen.PreviousControl = Screen.PreviousControl.OldValue
 
H

HOSPITAL

-----Original Message-----
record.


Why not just use the Windows standard Esc key? Hit it once
and it undoes the current control, twice undoes all the
changes to the currrent record.

If you feel you must use a button, then you can use

Screen.PreviousControl = Screen.PreviousControl.OldValue

Many Thanks! I was hoping it would be something easy.
The more I learn. The more I realize I know very little!
Signed,
Forever a Novice
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top