Results 1 to 2 of 2
  1. #1
    DASeb is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2015
    Posts
    2

    Turning rows into columns.


    Hi Forum,

    I'm trying to merge information from a table that generates new rows for each year an employer is active. I would like to have it be listed in a single row for each employer, with confirmation of the years active in separate columns.


    Problem Table:
    Employer 1 AccountID 1 2015
    Employer 1 AccountID 1 2016
    Employer 2 AccountID 2 2016


    How I would like it to appear in my table with all the other information:
    Employer Active 2015? Active 2016?
    Employer 1 Yes Yes
    Employer 2 No Yes

    I currently do this in 3 steps, but am curious to find out if there is a quicker solution. First I run two queries to list off the employers for a given year, THEN merge them into the final table.

    Thanks for taking a look at this!

  2. #2
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    Your problem table is the way normalized DBs are designed. The way you want it will continue to require maintenance in the future 2017, 2018, etc.
    So before you go that route, what is your reasoning for want to do it that way?

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

Similar Threads

  1. Replies: 4
    Last Post: 02-25-2014, 01:09 AM
  2. Replies: 12
    Last Post: 07-31-2013, 01:29 PM
  3. Rows to columns
    By zaffar_mughal in forum Access
    Replies: 1
    Last Post: 12-03-2012, 01:18 PM
  4. Rows to columns
    By Jim.H. in forum Access
    Replies: 1
    Last Post: 01-28-2012, 05:29 PM
  5. Rows into Columns
    By chrisdavis in forum Programming
    Replies: 16
    Last Post: 12-22-2011, 01:58 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