onClose Event

R

Richard

Hi

I tried to undo changes with the onclose event of a form, but it doesn't
seem to work. How do I undo the changes.

Thanks in advance
Richard
 
T

Todd Shillam

Richard,

You can't--the OnClose event is too late to try and undo things. Try using
the form's BeforeUpdate event--this is a good place to prevent or stop
things just before closing or saving record details.

Best regards,

Todd
 
R

Richard

Thanks Todd

I was thinking of a way to undo changes when the user uses the close button
instead of the command buttons.

Richard
 
S

Steve Schapel

Richard,

Todd's point still holds. If new data has been entered, the Before
Update event of the form will be triggered no matter how the form is closed.
 

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

Top