G
Guest
I'm trying to build a query for an Issue Tracking database in Access 2003
that will allow users to view all issues that are coming due in the next n
number of days. Each issue has a due date which is stored in a field called
"Agreed Resolution Date." To calculate the number of days until the issue is
due, I've created a calculated field called "DaysPastDue." It is defined as
DaysPastDue: ([Issue Table]![Agreed Upon Resolution Date]-Date()).
To find the issues due in the next 90 days, I would enter the following
criteria in the DaysPastDue field: <=90 And >=0. This returns the
appropriate records. However, I'd like to use a parameter query so users can
pass whatever number of days they'd like to see.
When I change the criteria to <=[parameter] And >=0 and enter a valid number
of days (such as 90), the query does not return the correct records. Any
idea why this does not work correctly? If I change the criteria to just
[parameter] (with no operators) the query works, but including the operators
(<,=) seems to cause problems.
Any help on this would be greatly appreciated. Thanks!
that will allow users to view all issues that are coming due in the next n
number of days. Each issue has a due date which is stored in a field called
"Agreed Resolution Date." To calculate the number of days until the issue is
due, I've created a calculated field called "DaysPastDue." It is defined as
DaysPastDue: ([Issue Table]![Agreed Upon Resolution Date]-Date()).
To find the issues due in the next 90 days, I would enter the following
criteria in the DaysPastDue field: <=90 And >=0. This returns the
appropriate records. However, I'd like to use a parameter query so users can
pass whatever number of days they'd like to see.
When I change the criteria to <=[parameter] And >=0 and enter a valid number
of days (such as 90), the query does not return the correct records. Any
idea why this does not work correctly? If I change the criteria to just
[parameter] (with no operators) the query works, but including the operators
(<,=) seems to cause problems.
Any help on this would be greatly appreciated. Thanks!