Results 1 to 2 of 2
  1. #1
    DarkReign is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    1

    Concatenating multiple fields from multiple records

    Could someone point me in the direction of where I can learn to concatenate multiple fields from multiple records into one unbound textbox in a continuous form for display purposes only? I'm creating a database to track multiple medications given to a patient each visit, and multiple parameters for each patient. I've googled for hours but all the examples I've seen are for single fields across multiple records.

    For example, for each visit, a patient gets multiple medications, and for each medication we track dose, units, intensity, payer, etc. So it would look something like:

    Visit Date | Patient | Age | Sex | about 20 other parameters | Medication 1, dose units, intensity, payer

    Visit Date Patient Age Sex About 20 other Parameters in 20 columns Medication 1, dose units, intensity, payer
    Medication 2, dose units, intensity, payer
    Medication 3, dose units, intensity, payer


    Medication 4, dose units, intensity, payer
    Medication 5, dose units, intensity, payer

    Would appreciate any help, as I'm all googled out! Thanks!
    - Karim

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Review: http://allenbrowne.com/func-concat.html

    You can do a query that first concatenates the fields into a single string then use that query as the source for the ConcatRelated function.

    Be aware, the function can really slow down performance of form. Subforms or listboxes would probably be easier and execute faster.
    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: 5
    Last Post: 02-21-2013, 10:03 PM
  2. Replies: 4
    Last Post: 07-13-2012, 12:47 PM
  3. Concatenating fields from matching records
    By MWMike in forum Queries
    Replies: 1
    Last Post: 10-28-2010, 10:49 PM
  4. multiple fields in separate records
    By Fredo0709 in forum Database Design
    Replies: 9
    Last Post: 04-09-2010, 12:23 PM
  5. Replies: 1
    Last Post: 12-10-2009, 08:41 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