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 / General 2 / March 2007

Tip: Looking for answers? Try searching our database.

suming totals for each department?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GregB - 20 Mar 2007 15:16 GMT
I have created a query with two tables.
One table is the invoice table and the other is the a table that contains a
field that has total cost. They are related by the order number.

Now the first field in the query is Department
The second is the Totals cost
The third is the Order date

I have the totals cost groued by the (SUM)

If I leave out the oder date and run the query it shows me the totals for
all orders for each department.
However, here is my problem. I want my users to search between dates so I
put in the between comand in the date field. However when the query is ran it
lists each indivisual date and total cost per order.

Now here si what is really fustrating me! I have the same ezact query set up
for a search of total cost per company and it works. The same ezact query....
I have spent the last 2 hours trying to figure this out and nothing makes
sence

What Am I doing wrong?
Duane Hookom - 20 Mar 2007 15:36 GMT
If this is a totals query, there will be a totals row in the grid. Make sure
the date column uses "Where" rather than "Group By". This should uncheck the
Show box.
Signature

Duane Hookom
Microsoft Access MVP

> I have created a query with two tables.
> One table is the invoice table and the other is the a table that contains a
[quoted text clipped - 18 lines]
>
> What Am I doing wrong?
GregB - 20 Mar 2007 19:45 GMT
Thank you, after changing the where command it worked. But whats wierd is
that I did not have to do that for the comapny query and it worked just
fine....wierd

> If this is a totals query, there will be a totals row in the grid. Make sure
> the date column uses "Where" rather than "Group By". This should uncheck the
[quoted text clipped - 22 lines]
> >
> > What Am I doing wrong?
 
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.