thewiseguy
Registered User.
- Local time
- Today, 19:55
- Joined
- Apr 14, 2004
- Messages
- 56
hullo there -
i'm using the following code for a 'clear & exit' button
this works fine unless the user has reached one of the tabforms (further down on the mainform) - then i'm guessing, the record has updated and Me.Undo has no effect. I've tried using:
...but I keep getting a "No Record Available" error messege popping up.
Any clues as to where I'm doing wrong??
Cheers.
i'm using the following code for a 'clear & exit' button
Code:
If MsgBox("Are you sure you wish to clear the current record?",
vbQuestion + vbYesNo, "Clear Record Verifification") = vbYes Then
Me.Undo
DoCmd.Close
DoCmd.OpenForm "frm: MAIN MENU"
GoTo Exit_IVClearExitButton_Click
Code:
DoCmd.RunCommand acCmdDeleteRecord
Any clues as to where I'm doing wrong??
Cheers.