Results 1 to 3 of 3
  1. #1
    chasew is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    2

    Crosstab query of monthly account totals

    Right now I have a crosstab query sorting expenses by Budget Section and Month. I want to make it show only one line for each Budget Section with a total each Month. The data is pulled from a Transactions table which has ID, Date, Cost, Budget Section and some other fields not relevant to this query. In total there are 19 Budget Sections I will have lines for in the query. What's the easiest way to make this work?

    What I have:
    Section 2015-07 2015-08
    Gas $23.48


    Gas $56.62
    Gas $20.00
    Gas
    $33.65
    Gas
    $41.81
    Gas
    $46.93
    Parts $83.74
    Parts $31.46
    Parts $14.54
    Parts $19.79
    Parts $12.37
    Parts
    $5.93
    Parts
    $341.71

    What I want:

    Budget Section 2015-07 2015-08
    Gas $100.10 $122.39
    Parts $161.91 $347.64

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    A crosstab query should show only one line for each budget item unless you have some other field as another RowCriteria. Since you don't show any other fields, I don't understand why there are multiple lines for each budget item.

    Review http://allenbrowne.com/ser-67.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    chasew is offline Novice
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    2
    I reopened the database after dinner and now it works. I don't know what changed when I closed it but the crosstab runs as I wanted it to now.

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

Similar Threads

  1. Replies: 5
    Last Post: 07-12-2015, 09:33 PM
  2. Crosstab query totals row
    By cbende2 in forum Access
    Replies: 7
    Last Post: 06-22-2015, 10:06 AM
  3. Replies: 2
    Last Post: 01-08-2015, 12:41 AM
  4. Replies: 4
    Last Post: 03-04-2014, 01:22 PM
  5. Monthly account closing function/procedure
    By Pragmatic in forum Programming
    Replies: 1
    Last Post: 11-15-2013, 12:41 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