Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / October 2004

Tip: Looking for answers? Try searching our database.

Summing on report from separate queries

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jk - 09 Oct 2004 03:13 GMT
Hi,

I would like to have my report have the sum totals from two differrent
queries.Is this possible and if it is, what are the steps involved in getting
these results?

Thanks
Duane Hookom - 09 Oct 2004 05:02 GMT
You can create an unbound report with a text box and control source of:
=DSum("FldA","TableA") + DSum("FldB","TableB")
If you need multiple fields or multiple records, you will have to provide a
few more details.

Signature

Duane Hookom
MS Access MVP
--

> Hi,
>
[quoted text clipped - 3 lines]
>
> Thanks
jk - 09 Oct 2004 18:05 GMT
Thanks Duane,

Actually it is two select queries that i want the sums for.I have the
following:
invoice table      Product table
invoice num       item size
item code          item color
item amt           item name

There is a code for every item in the product table.I have a select query
that has a criteria  from the invoice table that selects only item amts under
100 dollars and gives me the sum.Then i have another query that select
through parameter from the product table [ enter item name]...the name can be
shoes or ties.Anything entered into the parameter is selected and i get a sum
for that as well.These are two separate querys.Qryund100 and QryProname...how
do you join these two for one report that shows each total?        

> You can create an unbound report with a text box and control source of:
> =DSum("FldA","TableA") + DSum("FldB","TableB")
[quoted text clipped - 9 lines]
> >
> > Thanks
jk - 09 Oct 2004 18:11 GMT
Sorry Duane,
I meant to say, i already have a grand total for one report using one
query.All i really need is to have a second grand total added from the other
query(One report that  shows two grand totals from two separate querys.

> You can create an unbound report with a text box and control source of:
> =DSum("FldA","TableA") + DSum("FldB","TableB")
[quoted text clipped - 9 lines]
> >
> > Thanks
Duane Hookom - 09 Oct 2004 18:53 GMT
Again, you can use DSum() to get a total from another query. Other options
are:
-Code that opens a recordset and retrieves a value
-Combo Boxes have Row Sources which can be the other query
-Subreports have their own record source

Signature

Duane Hookom
MS Access MVP

> Sorry Duane,
> I meant to say, i already have a grand total for one report using one
[quoted text clipped - 14 lines]
> > >
> > > Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.