Terpsichore
Registered User.
- Local time
- Yesterday, 21:32
- Joined
- Jun 5, 2006
- Messages
- 34
Hi,
I have inserted a command button on my form using the Wizard to "undo" current edits. However, not edits were made it generates an error. (logically so, but my users are not so logical).
I'm calling it a "cancel" button. So, if it tries to "undo" and there is nothing to Undo I want it to continue with the additional code that I've included to lock some controls, etc.
I'm sure there is some way to do this via error handling or somesuch. I kept in the default error handling that Access puts in a Command button created using the wizard.
Any suggestions? Is there a better way to do this? I want to to Undo/cancel any attempted edits or if there are not attempted changes, continue with the rest of the code.
Help is greatly appreciated.
Thanks.
Angel
I have inserted a command button on my form using the Wizard to "undo" current edits. However, not edits were made it generates an error. (logically so, but my users are not so logical).
I'm calling it a "cancel" button. So, if it tries to "undo" and there is nothing to Undo I want it to continue with the additional code that I've included to lock some controls, etc.
I'm sure there is some way to do this via error handling or somesuch. I kept in the default error handling that Access puts in a Command button created using the wizard.
Any suggestions? Is there a better way to do this? I want to to Undo/cancel any attempted edits or if there are not attempted changes, continue with the rest of the code.
Help is greatly appreciated.
Thanks.
Angel