AnnaHansen
Board Regular
- Joined
- Oct 27, 2014
- Messages
- 58
Hi All,
This seems like it should be easy but I can't for the life of me figure out how to do it.
I have a query called "Performance Measure - Days" that calculates how many days it took an employee to complete an assignment. It has the following fields:
Tracking #
Date Assigned
Date Completed
Days: [Date Assigned]-[Date Completed]
My report has the "Performance Measure - Days" query as the control source. It has two text fields, which I want to show the number of assignments completed in 90 days or less, and the number of assignments completed in more than 90 days.
I tried having the following as my control source for the text field for assignments completed in more than 90 days:
=DCount("[Tracking #]","Performance Measure - Days","[Days] > 90")
This returns #error which I cannot figure out how to fix.
I have tried breaking up the query into two:
"Performance Measure - 90 Days or Less"
Tracking #
Date Assigned
Date Completed
90 Days or Less: [Date Assigned]-[Date Completed], Criteria <=90
Performance Measure - More than 90 Days
Tracking #
Date Assigned
Date Completed
More than 90 Days: [Date Assigned]-[Date Completed], Criteria >90
Then I set my text field control sources to:
=Count([Performance Measure - 90 Days or Less]![90 Days or Less]), and
=Count([Performance Measure - More than 90 Days]![More than 90 Days])
But this will only return a value for one text box, depending on which query I set as the control source for the report. The opposite text box throws a dialog box asking me for the value instead of using the query results.
This seems like it should be easy but I can't for the life of me figure out how to do it.
I have a query called "Performance Measure - Days" that calculates how many days it took an employee to complete an assignment. It has the following fields:
Tracking #
Date Assigned
Date Completed
Days: [Date Assigned]-[Date Completed]
My report has the "Performance Measure - Days" query as the control source. It has two text fields, which I want to show the number of assignments completed in 90 days or less, and the number of assignments completed in more than 90 days.
I tried having the following as my control source for the text field for assignments completed in more than 90 days:
=DCount("[Tracking #]","Performance Measure - Days","[Days] > 90")
This returns #error which I cannot figure out how to fix.
I have tried breaking up the query into two:
"Performance Measure - 90 Days or Less"
Tracking #
Date Assigned
Date Completed
90 Days or Less: [Date Assigned]-[Date Completed], Criteria <=90
Performance Measure - More than 90 Days
Tracking #
Date Assigned
Date Completed
More than 90 Days: [Date Assigned]-[Date Completed], Criteria >90
Then I set my text field control sources to:
=Count([Performance Measure - 90 Days or Less]![90 Days or Less]), and
=Count([Performance Measure - More than 90 Days]![More than 90 Days])
But this will only return a value for one text box, depending on which query I set as the control source for the report. The opposite text box throws a dialog box asking me for the value instead of using the query results.