After opening a form via a button control from within a form, I need to return to the original record and form on using a close button.
In other words, on pressing a "close" button, I need to return to the original record and form.
I used the wizard close form button event below; that button event returns me to the First record in the set. I need to return to the record I was working on.
Private Sub Command33_Click()
On Error GoTo Err_Command33_Click
DoCmd.Close
Exit_Command33_Click:
Exit Sub
Err_Command33_Click:
MsgBox Err.Description
Resume Exit_Command33_Click
End Sub
In other words, on pressing a "close" button, I need to return to the original record and form.
I used the wizard close form button event below; that button event returns me to the First record in the set. I need to return to the record I was working on.
Private Sub Command33_Click()
On Error GoTo Err_Command33_Click
DoCmd.Close
Exit_Command33_Click:
Exit Sub
Err_Command33_Click:
MsgBox Err.Description
Resume Exit_Command33_Click
End Sub