J
Jan Il
Hi All Access 2003 - Windows XP Pro SP2
I have a data entry form on which I have an Undo. The problem is that, if
during an entry the User changes their mind and changes an entry in control,
then decides to cancel the entry altogether, when they click the Cancel
(Undo) button, it give the error message: "Undo is not available at this
time.", then the only way to kill the entry is to exit out of the form, they
reopen. I have not been able to pinpoint the exact problem cause, however,
I am wondering if it may be connected to the change in the control, then
later wanting to undo the entire entry. The Undo button code is the simple
standard:
Private Sub cmdCancelRec_Click()
On Error GoTo Err_cmdCancelRec_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
Exit_cmdCancelRec_Click:
Exit Sub
Err_cmdCancelRec_Click:
MsgBox Err.Description
Resume Exit_cmdCancelRec_Click
End Sub
I'd truly appreciate it if someone would give me a bit of insight on what
might be the cause of the failure of the Undo to cancel the entry and why.
At least I'd have an idea of what may be happening and where.
Jan
MS MVP - IE/OE
Smiles are meant to be shared,
that's why they're so contagious.
I have a data entry form on which I have an Undo. The problem is that, if
during an entry the User changes their mind and changes an entry in control,
then decides to cancel the entry altogether, when they click the Cancel
(Undo) button, it give the error message: "Undo is not available at this
time.", then the only way to kill the entry is to exit out of the form, they
reopen. I have not been able to pinpoint the exact problem cause, however,
I am wondering if it may be connected to the change in the control, then
later wanting to undo the entire entry. The Undo button code is the simple
standard:
Private Sub cmdCancelRec_Click()
On Error GoTo Err_cmdCancelRec_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
Exit_cmdCancelRec_Click:
Exit Sub
Err_cmdCancelRec_Click:
MsgBox Err.Description
Resume Exit_cmdCancelRec_Click
End Sub
I'd truly appreciate it if someone would give me a bit of insight on what
might be the cause of the failure of the Undo to cancel the entry and why.
At least I'd have an idea of what may be happening and where.
Jan
MS MVP - IE/OE
Smiles are meant to be shared,
that's why they're so contagious.