Results 1 to 3 of 3
  1. #1
    arnhold is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2013
    Posts
    2

    Column data to row data

    Hi

    I have this data set and want to make it more effective by making a new column that specifies if the row is "budget" or "actual". And thereby transposing the three last columns to be rows. So instead of having 9 columns, I want 7 (9-3+1), but eight rows.

    I will be happy for an answer on this one

    Enclosed file ClaimSize.accdb




  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    A UNION query will probably achieve this. There is no designer or wizard for UNION, must type (or copy/paste) into SQL View.

    SELECT ID, Country, Product, [Small - actual] AS Small, [Mid-size - actual] AS MidSize, [Large - actual] AS Large, "actual" AS Category FROM ClaimSize
    UNION SELECT ID, Country, Product, [Small - budget], [Mid-size - budget], [Large - budget], "budget" FROM ClaimSize;
    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
    arnhold is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2013
    Posts
    2

    Talking Thanks

    Thanks a lot! That was just the solution I was looking for!

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

Similar Threads

  1. Move Data to Next Column Over
    By Jerseynjphillypa in forum Queries
    Replies: 5
    Last Post: 06-25-2012, 11:12 AM
  2. data in rows to column
    By topcat in forum Queries
    Replies: 2
    Last Post: 05-02-2012, 12:38 PM
  3. How do I copy all the data from a Column
    By winterh in forum Queries
    Replies: 5
    Last Post: 04-18-2012, 08:13 AM
  4. Replies: 1
    Last Post: 12-08-2011, 08:03 AM
  5. Replies: 1
    Last Post: 08-18-2011, 08:35 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