L
Leslie Isaacs
Hello All
This works:
Private Sub Command55_Click()
On Error GoTo Err_Command55_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_Command55_Click:
Exit Sub
Err_Command55_Click:
MsgBox Err.description
Resume Exit_Command55_Click
End Sub
.... but this doesn't - when I try it, if I click "No" the record is not
deleted (as expected) but when I click "Yes" I just get a 'ping' and the
record is not deleted. Is this a bug?
Private Sub Command53_Click()
On Error GoTo Err_Command53_Click
If MsgBox("Are you sure you want to delete this session?", vbQuestion +
vbYesNo, "") = vbYes Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End If
Exit_Command53_Click:
Exit Sub
Err_Command53_Click:
MsgBox Err.description
Resume Exit_Command53_Click
End Sub
Hope someone can help
Many thanks
Leslie Isaacs
This works:
Private Sub Command55_Click()
On Error GoTo Err_Command55_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_Command55_Click:
Exit Sub
Err_Command55_Click:
MsgBox Err.description
Resume Exit_Command55_Click
End Sub
.... but this doesn't - when I try it, if I click "No" the record is not
deleted (as expected) but when I click "Yes" I just get a 'ping' and the
record is not deleted. Is this a bug?
Private Sub Command53_Click()
On Error GoTo Err_Command53_Click
If MsgBox("Are you sure you want to delete this session?", vbQuestion +
vbYesNo, "") = vbYes Then
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End If
Exit_Command53_Click:
Exit Sub
Err_Command53_Click:
MsgBox Err.description
Resume Exit_Command53_Click
End Sub
Hope someone can help
Many thanks
Leslie Isaacs