RE: Cancel a New Record
From: TinleyParkILGal (TinleyParkILGal_at_discussions.microsoft.com)
Date: 10/26/04
- Next message: TinleyParkILGal: "RE: Cancel a New Record"
- Previous message: TinleyParkILGal: "RE: Cancel a New Record"
- In reply to: TinleyParkILGal: "Cancel a New Record"
- Next in thread: TinleyParkILGal: "RE: Cancel a New Record"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 13:33:02 -0700
Folks, this achieved my results. I took code from the undo button and I had
to add the code on error to take the user back to the first record as if the
user pressed the cancel button before putting in a field of a new record, the
user got an error that the undo feature was not available.
Thanks for your help.
Private Sub cmdDump_Click()
On Error GoTo Err_cmdDump_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
DoCmd.GoToRecord , , acFirst
Exit_cmdDump_Click:
Exit Sub
Err_cmdDump_Click:
DoCmd.GoToRecord , , acFirst
Resume Exit_cmdDump_Click
End Sub
"TinleyParkILGal" wrote:
> I have a form on which I have a command button to add a new record. If a user
> is in the middle of adding a record and decides not to pursue the new record,
> how do I code to allow the user to dump the record without having to hit
> escape? Perhaps a command button that says "cancel new record"...I wouldn't
> want this button to delete any other records as the users are not allowed to
> delete other records from this database. Thanks in advance.
"TinleyParkILGal" wrote:
> I have a form on which I have a command button to add a new record. If a user
> is in the middle of adding a record and decides not to pursue the new record,
> how do I code to allow the user to dump the record without having to hit
> escape? Perhaps a command button that says "cancel new record"...I wouldn't
> want this button to delete any other records as the users are not allowed to
> delete other records from this database. Thanks in advance.
- Next message: TinleyParkILGal: "RE: Cancel a New Record"
- Previous message: TinleyParkILGal: "RE: Cancel a New Record"
- In reply to: TinleyParkILGal: "Cancel a New Record"
- Next in thread: TinleyParkILGal: "RE: Cancel a New Record"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|