Hi everyone, I know that this has been discussed at large in the past and I have found great info in the past threads but none that answered my dilema.
I have a query, the criteria is pulled from a form's combo box.
Here's my code
This works great if I put in solid values such as 1, 2, 3 etc. But what I need is to pull things less than 2, more than 3 etc. So I'm thinking just put in the drop box the values "<=2" and ">3" but it doesn't return anything.
When I put "<=2" or ">3" directly in the criteria it works fine.
I must be missing something, why isn't it recognizing what's in my drop box as a proper criteria?
I have a query, the criteria is pulled from a form's combo box.
Here's my code
Code:
Field : Treatment Time: DateDiff("d",[tblRequests]![Date],[tblRequests]![Date_comp])
Show : True
Criteria : [Forms]![frmRequests_Search]![cbo48] Or [Forms]![frmRequests_Search]![cbo48] Is Null
This works great if I put in solid values such as 1, 2, 3 etc. But what I need is to pull things less than 2, more than 3 etc. So I'm thinking just put in the drop box the values "<=2" and ">3" but it doesn't return anything.
When I put "<=2" or ">3" directly in the criteria it works fine.
I must be missing something, why isn't it recognizing what's in my drop box as a proper criteria?