Problem:
I have a datediff function as a field in a query:
DateDiff("d",[ClientHistory].[Date],Now())
When I put in the criteria: >30
I get two results based on the datediff values equal to 37 and 110 for the two records.
Now problem: when I use >[Enter value] for the criteria and enter 30 at the prompt. I only get the record with 37, even though 110 is higher...
It seems very inconsistent based on the values I enter at the parameter. Have you ever experienced this or know what might be going on? All works fine if I hard enter the number in the criteria of the query, but not when I use a parameter.
I'm using Access 2000 on Vista and XP - both systems have the problem
I have a datediff function as a field in a query:
DateDiff("d",[ClientHistory].[Date],Now())
When I put in the criteria: >30
I get two results based on the datediff values equal to 37 and 110 for the two records.
Now problem: when I use >[Enter value] for the criteria and enter 30 at the prompt. I only get the record with 37, even though 110 is higher...
It seems very inconsistent based on the values I enter at the parameter. Have you ever experienced this or know what might be going on? All works fine if I hard enter the number in the criteria of the query, but not when I use a parameter.
I'm using Access 2000 on Vista and XP - both systems have the problem