Results 1 to 2 of 2
  1. #1
    Nanuaraq is offline Advanced Beginner
    Windows 7 32bit Access 2013 32bit
    Join Date
    Mar 2017
    Posts
    77

    Creating a dstring with a row of values in a query (not concatenate)

    I have a table with case numbers:



    Click image for larger version. 

Name:	tbl1.png 
Views:	9 
Size:	1.7 KB 
ID:	40342

    I also have a table with specific properties that a case may have:
    Click image for larger version. 

Name:	tbl2.png 
Views:	9 
Size:	1.6 KB 
ID:	40343

    Each case may have either none, a single, or more than one, of these Y-propeties.
    To manage these values, I create a third table with the properties of each case:
    Click image for larger version. 

Name:	tbl3.png 
Views:	9 
Size:	5.4 KB 
ID:	40346


    Now I wish to query the cases and their properties. In a query, the values may be returned like this:

    Click image for larger version. 

Name:	qry1.png 
Views:	9 
Size:	3.9 KB 
ID:	40344


    However, for reasons of quick overview and convenience in other tasks, I would like the values to be returned like this:

    Click image for larger version. 

Name:	qry2.png 
Views:	9 
Size:	2.8 KB 
ID:	40345


    Is this possible to do in a query? How?

    Hoping someone may help me here. Thank you in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    With VBA concatenating Property values into a string. Concatenating is the only way to get that CSV output. 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. Search Box Using Concatenate values?
    By abublitz in forum Programming
    Replies: 1
    Last Post: 05-18-2017, 04:44 PM
  2. Concatenate values from related records
    By AccessDennis in forum Queries
    Replies: 11
    Last Post: 04-29-2016, 05:22 PM
  3. Replies: 1
    Last Post: 03-13-2012, 06:11 PM
  4. Creating Query from Code, Concatenate fields
    By eww in forum Programming
    Replies: 5
    Last Post: 07-18-2011, 02:19 PM
  5. Replies: 3
    Last Post: 10-16-2009, 09:27 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