M
myxmaster
I have a combobox with the following code:
Private Sub Combo24_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Category] = " & Str(Nz(Me![Combo24], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I have a field on my form called category that has:
Credit
Cash
Check
Safe Keeping
Using the combobox I would like the user to filter the form and show
only those records matching the cbox selection.
At present the following line is highlighted as an error:
rs.FindFirst "[Category] = " & Str(Nz(Me![Combo24], 0))
Other combobox 's that I have tried simply go to the selected record
but does not filter.
TIA
Private Sub Combo24_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Category] = " & Str(Nz(Me![Combo24], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I have a field on my form called category that has:
Credit
Cash
Check
Safe Keeping
Using the combobox I would like the user to filter the form and show
only those records matching the cbox selection.
At present the following line is highlighted as an error:
rs.FindFirst "[Category] = " & Str(Nz(Me![Combo24], 0))
Other combobox 's that I have tried simply go to the selected record
but does not filter.
TIA