NauticalGent
Ignore List Poster Boy
- Local time
- Today, 08:59
- Joined
- Apr 27, 2015
- Messages
- 6,370
Good morning all,
I have a continuous form that I would like to filter with a combo-box in the forms header.
The combo box is populated with the table's primary field [ID] which is an Autonumber. When I click the caret on the combo box, it provides a list of ID's but when I select one, I get this error message "Run-time error 3709, the search key was not found in any record"
The code is:
I have googled this issue and tried some of the suggestions, included compacting and repairing the database, but nothing has worked.
Any assistance would be appreciated!
I have a continuous form that I would like to filter with a combo-box in the forms header.
The combo box is populated with the table's primary field [ID] which is an Autonumber. When I click the caret on the combo box, it provides a list of ID's but when I select one, I get this error message "Run-time error 3709, the search key was not found in any record"
The code is:
Code:
Private Sub Combo 31_AfterUpdate()
If Me.Combo31 & ""<> "" Then
Me.Filter = "[ID]= '"& Me.Combo31 & "'"
Else
Me.Filter = ""
End If
Me.FilterOn = True
End Sub
I have googled this issue and tried some of the suggestions, included compacting and repairing the database, but nothing has worked.
Any assistance would be appreciated!
Last edited: