Results 1 to 6 of 6
  1. #1
    Rhino373 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2011
    Posts
    65

    Table rows to columns

    I want to take a table that looks like this



    Account Date Amount
    0000 01/11 5.00
    0000 01/11 5.00
    0000 02/11 10.00
    1111 02/11 2.00
    2222 03/11 6.00

    and make it into a table that looks like this

    Account 1/11 2/11 3/11
    0000 10.00 10.00
    1111 2.00
    2222 3.00
    (assume the 2.00 entry is under 02/11 and the 3.00 entry is under 03/11)

    I understand it's just a pivot table but I need to match it up with another query and keep it in this format whereas a pivot table is really just a view. I can't match it up with another query before because when when I try to display it as a pivot table it tells me there is too much data being returned. I am using Access 2003

    Anyway to create a table where the column names are based on table data then take the information from that table?

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I'm pretty sure a crosstab query would work for you. http://www.databasedev.co.uk/crosstab_queries.html

  3. #3
    chrisdavis is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    10
    Hi and thank you. Well I don't have a "value" field. I need the actual values of "WC", "AB" in the new cell and not just a count.

  4. #4
    chrisdavis is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    10
    Hi Rhino. I'm not quite understanding what I am looking for in your post??

    You said another table?

  5. #5
    fcp is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    8
    Union Query try that!

  6. #6
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by fcp View Post
    Union Query try that!
    Crosstab, NOT Union Query. A Union query would not even be logical to set up for this.

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

Similar Threads

  1. Unmatched with multiple columns and rows
    By sampson20 in forum Programming
    Replies: 1
    Last Post: 04-18-2011, 10:48 AM
  2. Grouping and Transapose rows with columns
    By HendriX99 in forum Queries
    Replies: 3
    Last Post: 03-14-2011, 03:23 PM
  3. Colouring Rows & Columns
    By Outlook in forum Access
    Replies: 1
    Last Post: 01-12-2011, 09:22 AM
  4. Replies: 4
    Last Post: 01-15-2010, 06:06 AM
  5. Combining columns into rows
    By steeveepee33 in forum Queries
    Replies: 5
    Last Post: 04-30-2009, 09:18 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