G
Guest
I have used the "wizard" to delete a record (from a sub form as it happens)
however after the delete I get the error message "no current record" .
Could you tell me why this is happening and how to prevent it?
The code (which I think is just Access standard) is this:
Private Sub DeleteRequest_Click()
On Error GoTo Err_DeleteRequest_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_DeleteRequest_Click:
Exit Sub
Err_DeleteRequest_Click:
MsgBox Err.Description
Resume Exit_DeleteRequest_Click
End Sub
Many thanks
HelenJ
however after the delete I get the error message "no current record" .
Could you tell me why this is happening and how to prevent it?
The code (which I think is just Access standard) is this:
Private Sub DeleteRequest_Click()
On Error GoTo Err_DeleteRequest_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_DeleteRequest_Click:
Exit Sub
Err_DeleteRequest_Click:
MsgBox Err.Description
Resume Exit_DeleteRequest_Click
End Sub
Many thanks
HelenJ