I would like to open a form that displays a patient's information (PatientInformation_f) when I double click a patient's ID on a datasheet (part of another form).
I can get the patient information form to open to the right record using:
Private Sub Patient_ID_DblClick(Cancel As Integer)
DoCmd.OpenForm "PatientInformation_f", , , "PatientID=" & Me!PatientID
End Sub
However, I am using Access's Navigation Controls, and I can't figure out how to get PatientInformation_f to open within the navigation. I have read many times that all forms within navigation are considered subforms and I have tried the following but it is still not working...
Private Sub Patient_ID_DblClick(Cancel As Integer)
DoCmd.OpenForm "Form!NavigationForm_f!PatientInformation_f", , , "PatientID=" & Me!PatientID
End Sub
Does anyone know how to refer to forms within the navigation control in Access 2010?
Thanks!!!