Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Modal form with cancel

Status
Not open for further replies.

rewdee

Programmer
Aug 17, 2001
295
0
0
US
I use to know how to do this but I've forgotten.
=================================================
Say I create a bound modal form and I call the form like this:
Code:
DoCmd.OpenForm "myform", acNormal, , , acFormAdd, acDialog
However, what if the user wants to cancel there entry (eg. say the form has Ok and Cancel Command buttons. How do I cancel the post (sorry update in Access)?

Thanks,
Rewdee
 
A couple of things you could try:

Either...

Set the Cancel property of your cancel button to True

Or...

In your cancel button's OnClick event put something like Me.Undo

Hope thiw helps.

[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top