Results 1 to 4 of 4
  1. #1
    malikastor is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    2

    Access Newbie - Query for Daily Subtotals?

    Hi All,



    Recently got turned on to Access and I'm really enjoying learning about it. I hope you can help me, since it has to do with my new years resolution to be better about my finances!

    I have a table in which I am recording all of my purchases called Expenses, with the following fields:

    • Date
    • Description
    • Amount
    • Payee
    • Category

    I would like to create a query that I can run for a particular month that will show me how much I spent in total on each day. So for example, if I had 3 transactions on Jan 1 with each at $5, I would want the result set to display 1/1 - $15 and so on for all the days in Jan. I would like this query to be flexible enough so that I may use it for any month I wish, as I hope to incorporate it into a report somehow. I'm really interested in learning SQL, so a SQL query response would be appreciated!



    Your help is much appreciated, I hope I can return the favor one day!

  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,641
    Unless you're in a web db, a totals query is going to be your solution. Start a query with the date and amount fields in it. In design view, click on the Totals icon on the ribbon. Change Group By to Sum on the Totals row for the amount field and run the query. Presuming that's what you're after, the next thing to look into is parameter queries, like this person:

    https://www.accessforums.net/reports...ter-20044.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    malikastor is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    2
    Thank you Paul!

    As you've probably guessed, I'm not on a web DB.

    I'll check out the link you provided me.

  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,641
    No problem, and welcome to the site. Post back if you get stuck.
    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. Hiding Subtotals in Access 2007 Report
    By kristyspdx in forum Reports
    Replies: 8
    Last Post: 11-30-2011, 11:46 AM
  2. Replies: 2
    Last Post: 11-04-2011, 09:14 AM
  3. need two subtotals in ms access
    By learning_graccess in forum Access
    Replies: 1
    Last Post: 10-20-2011, 10:52 AM
  4. Newbie Help with Access Query
    By MartyMojito in forum Access
    Replies: 1
    Last Post: 03-17-2011, 02:50 PM
  5. Subtotals within a query
    By mulefeathers in forum Queries
    Replies: 2
    Last Post: 06-07-2010, 01:02 PM

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