Transpose data in a single column over many rows to many columns over single row

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luciegiles
    New Member
    • Oct 2007
    • 56

    Transpose data in a single column over many rows to many columns over single row

    Hi,

    I wish to transpose data in an Access table currently in a single column over many rows to many columns over single row:

    Current format:

    CHI DateIssued
    123456 01/01/10
    123456 01/02/10
    987654 05/01/10
    987654 09/01/10

    Desired format:

    CHI DateIssued1 DateIssued2
    123456 01/01/10 01/02/10
    987654 05/01/10 09/01/10

    My aim is to calculate the interval between DateIssued1 and DateIssued2.

    I've tried this with a crosstab query but unsuccessfully. There could be up to 500 DateIssued fields.

    Any help appreciated.

    thanks
    Lucie
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32656

    #2
    Have you looked at CrossTab queries Lucy. There is a wizard available to help you get started.

    Comment

    • luciegiles
      New Member
      • Oct 2007
      • 56

      #3
      Hi Neo,

      Yep, I tried a crosstab before I posted - getting an error message 'too many crosstab column headers' which I assume is to do with the number of DateIssued fields some individuals will have.

      L

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32656

        #4
        That's the only inbuilt facility I'm aware of I'm afraid.

        Comment

        • luciegiles
          New Member
          • Oct 2007
          • 56

          #5
          OK, no problem, thanks anyway

          Comment

          Working...