I have a navigation form with a tab for Admin. On that form, there are several subforms. The subforms have a list that corresponds with the records in that subform. I want to double click on the list for that subform (Record Source is a table) to go to that specific record. I use to have this as a single form with the vba
Private Sub lstAttendance_DblClick(Cancel As Integer)
Dim strCriteria As String
strCriteria = "[AttendanceID] = " & Me.lstAttendance.Column(0)
DoCmd.OpenForm "frmAdminAttendance", , , strCriteria, , acDialog
End Sub
but as expected, on double click, it opens the main form and does not stay on the Navigation subform as desired. Can anyone help?