Results 1 to 2 of 2
  1. #1
    Jim.H. is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    16

    I have a table with following fields

    I have a table with following fields


    ID,Desc, Cound, Code
    1, AAA,2,Code1
    2, BBB, 5,Code1
    3, AAA, 3,Code2
    4, CCC, 4, Code3

    I need this be represent the data as:
    Desc, Code1, Code2, Code 3
    AAA, 2, 3, 0
    BBB, 5, 0, 0
    CCC, 0,0,4
    How can I do this in a query.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    How many different Code values are there - can a crosstab query work? If not, review:
    http://forums.aspfree.com/microsoft-...ry-322123.html
    http://allenbrowne.com/func-concat.html
    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.

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

Similar Threads

  1. Replies: 11
    Last Post: 09-15-2011, 03:52 PM
  2. Replies: 3
    Last Post: 08-16-2011, 02:20 PM
  3. Replies: 1
    Last Post: 12-01-2010, 11:01 AM
  4. Replies: 5
    Last Post: 03-20-2010, 08:30 AM
  5. Replies: 3
    Last Post: 08-10-2009, 08:33 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