UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Grouping Data Nightmare    
 
   
shoelessjake
post Nov 19 2003, 09:28 AM
Post #1

UtterAccess Member
Posts: 42
From: Dallas, TX



Hello,

I am trying to run a query that would take all of the dates in my database and group them into their respective months. The following is a scenario of what I am trying to accomplish:

Reason
No Shipment $25 5/1/03
No Shipment $100 5/10/03
No Shipment $100 6/5/03
Late Shipment $75 6/10/03
Late Shipment $50 7/15/03
Late Shipment $125 7/21/03

What I would like to do is group by "Reason" all of the dollars that happened in a certain month into their respective months (i.e., everything that happend in 5/03 would be sumed in "May" so May would equal $125 for the reason of "No Shipment".

Please help

Shoeless
Go to the top of the page
 
+
BenPurser
post Nov 19 2003, 09:51 AM
Post #2

UtterAccess VIP
Posts: 5,244
From: Northern Virginia



If you create a Totals query, have this as a calculated field:

format([YourDateFieldHere],"mm/yyyy")

and set it to Group by....set your dollar field to sum, and your reason to group by, should do the trick...

HTH
Ben
Go to the top of the page
 
+
rmvk
post Nov 19 2003, 10:32 AM
Post #3

New Member
Posts: 7



Hi,

In Query design view type under date criteria between #5/1/03# and #5/31/03#. Under reason press totals icon and select group by. Under money select sum and under date where. It will give reason by sum of money by month. Date may not be display. In report you can display by month. Is it clear.....

Mathi R.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 26th May 2013 - 01:28 AM