Re: Best way to cancel out of a data entry form?
- From: "J. Goddard" <jrgoddard@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Sep 2006 22:18:43 -0400
You can turn the warning off with:
Docmd.setwarnings off
Be sure to turn it back on, though - the setting is for the whole application, and having warnings off might disable messages you DO want the users to see.
The help on SetWarnings gives a good explanation.
John
Mick wrote:
I want to put a 'cancel' button in a data entry form so that if a user
enters some data and then cancels it discards the data entered, if I do
a delete record:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
It seems to work but prompts the user 'do you want to delete 1 record'
which scares them a little. Is there a way to modify this or use
another function to get it to cancel and discard without the prompt or
to change the prompt to 'are you sure you want to cancel'?
Thanks for any input!
Mick
.
- References:
- Best way to cancel out of a data entry form?
- From: Mick
- Best way to cancel out of a data entry form?
- Prev by Date: Best way to cancel out of a data entry form?
- Next by Date: Re: Apply Filter to Datasheet
- Previous by thread: Best way to cancel out of a data entry form?
- Next by thread: Re: Best way to cancel out of a data entry form?
- Index(es):
Relevant Pages
|