Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fields not displaying in report - query may not be accurate

Status
Not open for further replies.

laina222

Technical User
Sep 7, 2001
172
US
I have two queries I'm using for one report. Query1 is data from my table by date range, so that the user enters the start and stop date and gets all records for that range. Query2 refers to my first query mentioned, getting the averages and totals only for the data in the first query by the specified date range.
When I run the report, it first asks me for the start date and then the end date. Then it asks for the value of Query2. Obviously I don't want to enter anything, so I click "OK" and it displays the report. The individual records for Query1 display accurately, but the Averages and Totals below have "#Error" displayed instead of the values. In their control source I have "=Query2.Average", etc, but the values don't calculate and/or display correctly. Any ideas?
 
A report has only one record source. You can't use an expression like =MyQuery.MyField in a control source. You can use function like DLookup().

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top