atticus1802
Registered User.
- Local time
- Today, 12:15
- Joined
- May 5, 2010
- Messages
- 43
Good Evening,
I have looked everywhere for an answer to this so I am hoping I haven't missed this. I want to link to a specific record in a subform. I originally used the below piece of VBA code, which looked at the "Main_Contact" record from my main form which is named "frmProject", and brought back the correpsonding record in the "frmContacts" form.
I have since changed this so that the "frmcontacts" form is now a subform in the "frmLaw_Firms" form. I would like to open the "frmLaw_Firms" form and open the corresponding record in the subform.
I hope this make sense.
Thanks in advance.
I have looked everywhere for an answer to this so I am hoping I haven't missed this. I want to link to a specific record in a subform. I originally used the below piece of VBA code, which looked at the "Main_Contact" record from my main form which is named "frmProject", and brought back the correpsonding record in the "frmContacts" form.
Code:
Private Sub Find_Main_Button_Click()
DoCmd.OpenForm "frmContacts", , , "Contact_Full_Name = '" & Me.Main_Contact & "'"
End Sub
I have since changed this so that the "frmcontacts" form is now a subform in the "frmLaw_Firms" form. I would like to open the "frmLaw_Firms" form and open the corresponding record in the subform.
I hope this make sense.
Thanks in advance.