Results 1 to 2 of 2
  1. #1
    JRINC is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    9

    Sums in First Column of Crosstab

    How can I get the query to sum column 1 (EventName) so there is one row for each individual event? (EventName data is months of the year plus a few other meeting names). Now it creates a row each time, for example, there is an expense for that event. So one month might be listed many times...

    Thanks!





    TRANSFORM CCur(Nz(Sum([Expense Details].Cost),0)) AS [Total Of Cost]
    SELECT [Expense Details].EventName
    FROM [Expense Report] INNER JOIN ([Expense Details] INNER JOIN [Budget Categories] ON [Expense Details].CategoryNumber=[Budget Categories].ID) ON [Expense Report].ExpenseID=[Expense Details].ExpenseReport
    GROUP BY [Expense Report].ExpenseDate, [Expense Details].EventName
    PIVOT [Budget Categories].CategoryNumber;

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    I need sample data to test on if you want to provide.
    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.

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

Similar Threads

  1. Crosstab Column names used
    By JRINC in forum Queries
    Replies: 3
    Last Post: 09-29-2011, 02:46 PM
  2. Replies: 1
    Last Post: 07-10-2011, 11:20 PM
  3. Crosstab Query - Column differences conflict
    By JoshZulaica in forum Queries
    Replies: 1
    Last Post: 06-23-2011, 01:43 AM
  4. Replies: 1
    Last Post: 04-13-2011, 12:11 PM
  5. Dynamic Column Headers but NOT CROSSTAB
    By jtkjames in forum Queries
    Replies: 1
    Last Post: 07-26-2010, 05:16 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