Results 1 to 4 of 4
  1. #1
    Clkkelly is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    2

    Question Summing cost data by month and by category

    I recently started an internship and my boss has asked me to put together an access program for cost budgeting, despite me not having an Access experience. What I need to do is to Sum the Cost/Value associated for each IB Number for each month. I have tried using a DSUM, but I can only sum every record based on a single criteria. If this was in Excel I know I could use SUMIFS and select the rows as the data but I have no idea how to replicate this in Access.

    Any advice on how I could group the costs associated with each IB number for each month would be greatly appreciated. I have attached screenshots of my data below along with what I am trying to do in access.





    . Click image for larger version. 

Name:	Access.PNG 
Views:	19 
Size:	37.3 KB 
ID:	27168Click image for larger version. 

Name:	Access2.PNG 
Views:	17 
Size:	17.7 KB 
ID:	27169Click image for larger version. 

Name:	Access3.PNG 
Views:	18 
Size:	40.7 KB 
ID:	27170

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Try this query:

    SELECT [IB Number], Sum([cost/value] As HowMuch, Format([Date], "yyyymm") As MonthYear
    FROM TableName
    GROUP BY [IB Number], Format([Date], "yyyymm")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Clkkelly is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    2
    Thanks for that. That is problem 1 taken care of. Now I just need to try and get a month to month table.

    I do wish someone offered actual access training

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Like that last picture? Play with the crosstab query wizard.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-14-2016, 02:36 PM
  2. Replies: 1
    Last Post: 07-20-2015, 12:39 PM
  3. Replies: 2
    Last Post: 02-12-2015, 05:14 AM
  4. Replies: 5
    Last Post: 05-10-2014, 09:24 AM
  5. Replies: 4
    Last Post: 07-16-2009, 02:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums