Multiple queries on same report

J

Jason Stevens

Can I display multiple queries on 1 report?
I have tried using:
=DLookUp(ExpensesTotalQuery!SumOfamount,"ExpensesTotalQuery")
but this just displays #Name? on the report.

Jason
 
W

Wolfgang Kais

Hello Jason.

Jason said:
Can I display multiple queries on 1 report?
I have tried using:
=DLookUp(ExpensesTotalQuery!SumOfamount,"ExpensesTotalQuery")
but this just displays #Name? on the report.

If SumOfamount is a field in the query "ExpensesTotalQuery", try this:
=DLookUp("[SumOfamount]","ExpensesTotalQuery")

But shouldn't the report calculate the total for you?
 
P

Paul (ESI)

Try this:

Open your report in design view. Click "View" then "Properties." Or, if you
prefer, in the far left corner, you should see a gray box (it may have a
black box in the middle of it. If it doesn't, it will when you click it) just
above the one ruler bar and next to the other. Double click the gray box and
this will also pull up the properties. Go to either the "Data" tab or "All"
tab. Look for "Record Source." Click your cursor into the white box there,
then click the box with the three dots that shows up to the right.

Up above, in the gray area, you'll see your table or query. Add any other
tables or queries you want by right clicking in the gray area, then clicking
"Show table." If you are needing to add a query, click the "Query" tab and it
will display your queries. Add any tables or queries you need to add. You can
then click and drag any of the fields for those tables or queries right down
into the white table looking area in order to add them to the query. I hope
this helps.

--
Have a nice day!

~Paul
Express Scripts,
Charting the future of pharmacy

~~~~~~
| |
|c--OD
| _)
| |
|-. |
/ `-# /A
/ /_|..`#.J/
||LJ `m''
ptaylor
 
J

Jason Stevens

Paul,
The "Record Source" did the trick. I have spent numerous hours trying to
figure that out. Thanks a ton.
Jason
 
P

Paul (ESI)

No problem. Glad I could help. A few months ago, I came back to using Access
after not having even looked at it for years. That one tripped me up for a
while too.

--
Have a nice day!

~Paul
Express Scripts,
Charting the future of pharmacy

~~~~~~
| |
|c--OD
| _)
| |
|-. |
/ `-# /A
/ /_|..`#.J/
||LJ `m''
ptaylor
 
Top