N
Nick Shinkins
I am trying to use a combobox populated by a field to navigate between
records in a form.
I have seen this done before but I seem to keep generating errors when I try.
The code I am using is:
Private Sub ClientNameComboBox_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Dim SearchName As String
Set rs = Me.Recordset
SearchName = Me!ClientNameComboBox
rs.FindFirst "Client Name = " & SearchName
Me.Bookmark = rs.Bookmark
End Sub
Client Name is the field I am looking through and trying to match but I keep
getting a syntax error.
Any suggestions? I can provide more detail if needed,
Thanks in advance,
Nick Shinkins
records in a form.
I have seen this done before but I seem to keep generating errors when I try.
The code I am using is:
Private Sub ClientNameComboBox_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Dim SearchName As String
Set rs = Me.Recordset
SearchName = Me!ClientNameComboBox
rs.FindFirst "Client Name = " & SearchName
Me.Bookmark = rs.Bookmark
End Sub
Client Name is the field I am looking through and trying to match but I keep
getting a syntax error.
Any suggestions? I can provide more detail if needed,
Thanks in advance,
Nick Shinkins