Hello
I have a problem with the following code, and hope if someone could give me some guidance, to where I am going wrong. Basically I am looking to filter the variable "YearsInJob" by allowing user to enter a value less than or equal to whatever value is entered into the textbox.
When try to run the filter criteria I receive the following error message
"Run Time Error 3709: The Search Key was not found in any Record"
I have a problem with the following code, and hope if someone could give me some guidance, to where I am going wrong. Basically I am looking to filter the variable "YearsInJob" by allowing user to enter a value less than or equal to whatever value is entered into the textbox.
Code:
If Not IsNull(Me.txtyearsinjob) Then
strWhere = strWhere & "([YearsInJob] <= " & Me.txtyearsinjob & ") AND "
End If
When try to run the filter criteria I receive the following error message
"Run Time Error 3709: The Search Key was not found in any Record"