I have a main form “frmMAIN” which is controlled by a table tblCLIENTS. Within that main form I use a command button to open a second form “frmSECOND” also controlled by “tblCLIENTS”. I navigate to different records in tblCLIENTS in the “frmSECOND”. Now when I close the “frmSECOND” I want to force the “frmMAIN” to go to the last current record that I was at in the frmSECOND. How would I do that? The following is the code for closing the frmSECOND.
Private Sub Command0_Click()
On Error GoTo Err_Command0_Click
DoCmd.Close
Exit_Command0_Click:
Exit Sub
Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click
End Sub
Thanks
Private Sub Command0_Click()
On Error GoTo Err_Command0_Click
DoCmd.Close
Exit_Command0_Click:
Exit Sub
Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click
End Sub
Thanks