B
butboris via AccessMonster.com
Hi all
I have a pop up form called "Student Finder" which is bound to a query which
displays information of my subform.
At this stage, my query and pop up displays the information I seek and thanks
to previous posts I was able to us the "on click" event on the pop up ID
field to take me to the record but it only goes to the first record of the
subform not the record on subform i chose.
I want the the on click event of the pop up to take me to the parent record
and then to navigate subform record.
The parent form is called "CourseLocationDetails" and the subform is called
"Student Details"
The tables have a one to many relationship set up i.e. One
CourseLocationDetails can have many student details.
My code so far which is on the pop up:
Private Sub ID_Click()
Dim strf As String
strf = "CourseLocationDetails"
DoCmd.OpenForm strf
Forms(strf).Recordset.FindFirst "ID = " & Str(Nz([Forms]![StudentFinder].[ID])
)
DoCmd.Close acForm, "StudentFinder"
End Sub
I have searched an have not as yet found how to achieve this.
Thanks for any help on this!
I have a pop up form called "Student Finder" which is bound to a query which
displays information of my subform.
At this stage, my query and pop up displays the information I seek and thanks
to previous posts I was able to us the "on click" event on the pop up ID
field to take me to the record but it only goes to the first record of the
subform not the record on subform i chose.
I want the the on click event of the pop up to take me to the parent record
and then to navigate subform record.
The parent form is called "CourseLocationDetails" and the subform is called
"Student Details"
The tables have a one to many relationship set up i.e. One
CourseLocationDetails can have many student details.
My code so far which is on the pop up:
Private Sub ID_Click()
Dim strf As String
strf = "CourseLocationDetails"
DoCmd.OpenForm strf
Forms(strf).Recordset.FindFirst "ID = " & Str(Nz([Forms]![StudentFinder].[ID])
)
DoCmd.Close acForm, "StudentFinder"
End Sub
I have searched an have not as yet found how to achieve this.
Thanks for any help on this!