You may all know this one, but I would really appreciate a hand please.
In a form when the Command Button 'Undo Edit' is pressed a VB procedure returns an error message, as follows:
The command or Action Undo isn't available now. and
*You may be in a read only database...etc
*The type of Object the action applies to...etc
followed by:
Use only those commands and Macro actions that are currently available for this database
This appears to be associated with the following Code
MsgBox Err.Description
The full procedure is as follows:
My question is: How can I get into the 'Description' and compose my own error messages and have them shown at this point?
regards
Jim
In a form when the Command Button 'Undo Edit' is pressed a VB procedure returns an error message, as follows:
The command or Action Undo isn't available now. and
*You may be in a read only database...etc
*The type of Object the action applies to...etc
followed by:
Use only those commands and Macro actions that are currently available for this database
This appears to be associated with the following Code
MsgBox Err.Description
The full procedure is as follows:
Code:
Private Sub CmdUndoAll_Click()
On Error GoTo Err_CmdUndoAll_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
Exit_CmdUndoAll_Click:
Exit Sub
Err_CmdUndoAll_Click:
MsgBox Err.Description
Resume Exit_CmdUndoAll_Click
End Sub
My question is: How can I get into the 'Description' and compose my own error messages and have them shown at this point?
regards
Jim