Results 1 to 5 of 5
  1. #1
    DanielY8 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    3

    Question Group text field

    Hi, I am trying to create a query that groups a text field, so from data that looks like this:
    Code:
    Code     |      Description
    Part1        |    DescriptionA
    Part1       |     DescriptionB
    Part2        |    DescriptionC
    I want to get these results,

    Code:
    Code     |      Description
    Part1       |     DescriptionA, DescriptionB
    Part2      |      DescriptionC
    Is such a thing possible? I thought it might be somehow done with a grouing query, but haven't had any success. Can anyone help?


    Much appreciated

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Do you have to show your data in only two columns?

    How many "Descriptions" might you have? I have created a crosstab query with a column for each type of "Description", but haven't tried to consolidate the columns into one.

  3. #3
    DanielY8 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    3
    The number of descriptions vary from 1 to max 5(I think).

  4. #4
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    I have a doctor's appointment this morning, so won't have time to get an example for you. Try using the query wizard to create a crosstab query. It may take two tries, but it should give you the arrangement you want.

  5. #5
    DanielY8 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2011
    Posts
    3
    Thank you very much, I have just tried to do a quick one and it looks like it will work. Some small refinements and all should be fine. Thankyou very much

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

Similar Threads

  1. Conditional Formating for Field Before Group
    By AccessLes in forum Reports
    Replies: 9
    Last Post: 07-20-2011, 12:42 PM
  2. Query to group and count field entries
    By newtoAccess in forum Queries
    Replies: 4
    Last Post: 11-29-2010, 09:19 AM
  3. Group by one field, but not another!?
    By Demonweare in forum Access
    Replies: 2
    Last Post: 06-23-2010, 05:12 AM
  4. Replies: 2
    Last Post: 05-05-2010, 02:52 PM
  5. Group report by a multivalued lookup field
    By jonsons in forum Reports
    Replies: 0
    Last Post: 12-01-2009, 04:08 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