Results 1 to 3 of 3
  1. #1
    ork2002 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    11

    Exclamation When concatrelated() just isn't enough.

    I have a problem. I am trying to streamline my consenting process for surgeries. I have Patient_Data table with unique patient information including a multivalue field for "operations" (ie one patient will get several procedures in one trip to the OR = Tracheostomy, Glossectomy, Neck Dissection). I have another table which relates each procedure to a multivalue field containing all the risks associated with that one procedure.

    Now I have used queries to finally get it to where each patient is listed with their specific risks associated with their procedure (without duplications).



    I then used concatrelated() to combine all these risks into one field to finally arrive at a query with only one row per patient with all risks listed serially in one field.

    HOWEVER, I need more room. One of my records, the list cuts off with 3 risks not listed. I need more than the 255 character limit. Any thoughts?

    Here is a sample of my Query... soo frustrating . I just need to list those risks horizontally for each specific patient.

    Click image for larger version. 

Name:	Query Results.png 
Views:	15 
Size:	45.3 KB 
ID:	15708

    Edit-
    Reference: Allen Browne's website- http://allenbrowne.com/func-concat.html

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    I have code that builds longer strings. However, it is not a function called in a query. Try calling the function from a textbox in report.

    Or use Allen's workaround. See his Bug warning in the link you posted and visit that link.
    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.

  3. #3
    ork2002 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    11
    You are right, using the function in the report field fixed the truncation!!! Happy day. Thanks for your insight.

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

Similar Threads

  1. Replies: 2
    Last Post: 07-12-2013, 06:55 AM

Tags for this Thread

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