Results 1 to 4 of 4
  1. #1
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476

    A CrossTab & Currancy Issue

    This is a CrossTab Query involving Currency.

    In the Total/sum column I’m getting the totals in currency values, yet in my Months columns across the values aren’t currency. I set the Format in month columns to Currency which doesn’t help. I can’t illustrate exactly what I mean because tabs/columns never seem to work when posting.

    Eg. These are ALL Columns
    - TotalOfErngs $20.00
    - EmployeeID (Mrk_Walker)
    - Jun (I want to see $5.00) but I’m just getting 5
    - Jul (I want to see $4.00) but I’m just getting 4.88
    - Aug (I want to see $11.00) b ut I’m just getting wacky #

    Here’s the SQL
    TRANSFORM Sum([Monthly Employees Sums].SumOfErngs) AS SumOfSumOfErngs
    SELECT [Monthly Employees Sums].EmployeeID, Sum([Monthly Employees Sums].SumOfErngs) AS [Total Of SumOfErngs]
    FROM [Monthly Employees Sums]
    GROUP BY [Monthly Employees Sums].EmployeeID


    PIVOT [Monthly Employees Sums].Mnth;

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by djclntn View Post

    Here’s the SQL
    TRANSFORM Sum([Monthly Employees Sums].SumOfErngs) AS SumOfSumOfErngs
    SELECT [Monthly Employees Sums].EmployeeID, Sum([Monthly Employees Sums].SumOfErngs) AS [Total Of SumOfErngs]
    FROM [Monthly Employees Sums]
    GROUP BY [Monthly Employees Sums].EmployeeID
    PIVOT [Monthly Employees Sums].Mnth;
    I absolutely hate crosstabs. Such easy stuff, but yet they're never worked with. So which field is it that is the issue? the "Mnth" field for pivoting, right? Try wrapping it in CCUR(). Or you can combo that with ROUND() to get a numeric with 2 dec. places.

  3. #3
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    I'm sorry but I don't follow -- might you show me the SQL? Yes, the "Mnth" field is the issue.

    Is using a pivoting Query, which I've never tackled before sort of like a Cross Tab Quey?e

  4. #4
    djclntn is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Posts
    476
    Can u show me in a sql, maybe?

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

Similar Threads

  1. Crosstab query
    By Deutz in forum Queries
    Replies: 8
    Last Post: 01-08-2013, 03:37 PM
  2. Crosstab issue
    By teedee in forum Queries
    Replies: 5
    Last Post: 02-07-2011, 10:49 AM
  3. Crosstab Query Bug
    By goodguy in forum Queries
    Replies: 19
    Last Post: 02-03-2011, 01:41 PM
  4. Crosstab example
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-24-2010, 12:07 AM
  5. Crosstab: Sum of Columns over Row
    By tommaccoy in forum Queries
    Replies: 0
    Last Post: 12-03-2008, 05:26 AM

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