I have a main form 'TS PM Filter' and a Subform 'getcurrentusers'
On the subform, I have a number of fields including 'Personid'. What I am trying to do is when the 'find record button' is pressed(on subform) the main form opens and finds the 'personid' from the subform. Below is the code I am using but it just goes to the first record on the mainform
Private Sub Command45_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "TS PM Filter"
stLinkCriteria = Me!Personid
DoCmd.OpenForm stDocName, , , Trim(stLinkCriteria)
DoCmd.Close acForm, "getcurrentusers", acSaveNo
End Sub
Any help would be huge.
Thank You!
On the subform, I have a number of fields including 'Personid'. What I am trying to do is when the 'find record button' is pressed(on subform) the main form opens and finds the 'personid' from the subform. Below is the code I am using but it just goes to the first record on the mainform
Private Sub Command45_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "TS PM Filter"
stLinkCriteria = Me!Personid
DoCmd.OpenForm stDocName, , , Trim(stLinkCriteria)
DoCmd.Close acForm, "getcurrentusers", acSaveNo
End Sub
Any help would be huge.
Thank You!