Results 1 to 2 of 2
  1. #1
    indiana is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2010
    Posts
    1

    Reverse Cross Tab

    I have a table that contains data in the format:



    Company | Account | January | February | Etc......

    I would like to convert it into the following:

    Company | Account | Month

    I know I need a Union query but am unsure of the EXACT syntax I need.

    Any thoughts?

    Also, can I use a Union query on a query rather then a table?

    Thanks,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Try

    SELECT Company, Account, January, "January" As MonthField
    FROM TableName
    UNION ALL
    SELECT Company, Account, February, "February" As MonthField
    FROM TableName
    ...
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. How do I use a MODULE in a Cross-Tab Query?
    By timo1999 in forum Modules
    Replies: 2
    Last Post: 12-13-2014, 04:51 PM
  2. Cross Tab Queries
    By Nixx1401 in forum Access
    Replies: 6
    Last Post: 02-16-2010, 11:55 AM
  3. Reverse an .mde
    By Marion in forum Access
    Replies: 2
    Last Post: 12-07-2009, 03:09 PM
  4. Cross Tab Query
    By nengster in forum Queries
    Replies: 0
    Last Post: 02-18-2009, 07:12 PM
  5. access cross tab query
    By Hossam in forum Access
    Replies: 0
    Last Post: 11-10-2008, 06:01 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