I have an Access form with a combobox and a subform on it. The subform is in datasheet mode (the way I want it). What I'm trying to do is make a sort of search function. When something is selected from the combobox, I want the subform's datasheet to scroll to and highlight the matching record.
I do not want to filter the subform (ie remove all non-matching records).
Can anyone give me some guidance on how to achieve this?
Something like this:
Private Sub Combo0_AfterUpdate():
With Me.Child0.Form.Recordset
.FindFirst "ID_Field=" & Me.Combo0
End With
End Sub
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.