I am trying to combine all like numbers in one column but each has a seperate total in another so I need to combine and sum the totals. Can I email this access query to someone to try to figure out what I need to do I am willing to pay for help
I should have left out the date but I want the other columns to come out like this with the part number only once and amounts totaled for each part number
DIPART DIDESC DHTOTI
48605-02010-H LOWER ARM 7526.68
53211-04903-H SUPPORT 132,270
53301-AA040-H HOOD 78748.72
That worked perfect I got the user what he wanted I have another question which may not be able to do but is there a way to group each part by month and the the total for month I would like to get the same results but on a monthly bases. I am trying to get sales results for last 3 years month by month the table has the date of the part.
SELECT DIPART, DIDESC, Format([your date field],'yyyy-mm') AS [Month], Sum(DHTOTI) AS Total
FROM yourTable
GROUP BY DIPART, DIDESC, Format([your date field],'yyyy-mm')
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.