I have a tabbed continuous form from which I double-click on a record and displays all the details of the record in a separate form. When I close the form, I can go back as far as opening up the continuous form but focus is set on the first record with the code below:
Private Sub Form_Close()
DoCmd.OpenForm "Switchboard"
With Forms("Switchboard")
!tabTCN.Value = !Listing.PageIndex 'open the tab for TCN listing
End With
End Sub
How can I can close the form and setfocus on the same record I double-clicked on? Please help. Thank you much!
Private Sub Form_Close()
DoCmd.OpenForm "Switchboard"
With Forms("Switchboard")
!tabTCN.Value = !Listing.PageIndex 'open the tab for TCN listing
End With
End Sub
How can I can close the form and setfocus on the same record I double-clicked on? Please help. Thank you much!