Okay, so as the photo below shows, I have a main form with a subform in it.
https://filestogeaux.lsu.edu/public/download.php?FILE=jaredg16/77529FNbGMk
Currently, when you search for a last name in the search box, it calls the following OnClick event procedure to go to that record in the main form.
'------------------------------
' Search for Last Name Box
'------------------------------
Private Sub SearchRecordsButton_Click()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[lastname] = '" & Me![SearchLastName] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
So far so good, but what I would also like to do is not only to go to that record in the main form as it currently does, but I'd also like it to go to that same record in the subform datasheet. How can I do this?
Thanks in advance!
[/SIZE][/SIZE]
https://filestogeaux.lsu.edu/public/download.php?FILE=jaredg16/77529FNbGMk
Currently, when you search for a last name in the search box, it calls the following OnClick event procedure to go to that record in the main form.
'------------------------------
' Search for Last Name Box
'------------------------------
Private Sub SearchRecordsButton_Click()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[lastname] = '" & Me![SearchLastName] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
So far so good, but what I would also like to do is not only to go to that record in the main form as it currently does, but I'd also like it to go to that same record in the subform datasheet. How can I do this?
Thanks in advance!
[/SIZE][/SIZE]