Fredgarner
Technical User
From my form I am trying to use a combo box to find a specific name in my subform (called 'shareholders subform') within the 'account designation' field. Can anyone identify why the code below does not work?
Private Sub Combo174_AfterUpdate()
DoCmd.GoToControl "Shareholders subform"
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Account Designation] = " & Str(Nz(Me![Combo174], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo174_AfterUpdate()
DoCmd.GoToControl "Shareholders subform"
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Account Designation] = " & Str(Nz(Me![Combo174], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub