Results 1 to 4 of 4
  1. #1
    Josha is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2019
    Location
    Victoria, Australia
    Posts
    42

    How to concatenate subform data in a string on the main report?

    So I currently have a database for my science students to record their examination notes.




    On the 'examination' form the students fill out their case and item number and the lab room number. These all are static fields.... But then I have a related table that stores the students names... So I built a subform in to the main form where the students can record their names as well as their partners names using their initials, ABC (for example). Most of the time they work in partners but sometimes they are in groups of 3 and rarely in groups of 4.


    On the main report when they print it, instead of have a subreport in the main report that lists the students initials, for example


    Students
    ABC
    XYZ


    I want the report to concatenate the students intiails like this :ABC, XYZ..... Is there a way to do this? Keeping in mind that the group of students may be 3 or 4....


    Thanks!
    Last edited by Josha; 02-20-2022 at 08:23 PM. Reason: spelling mistake and making the title clearer

  2. #2
    Josha is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2019
    Location
    Victoria, Australia
    Posts
    42
    I think what I am trying to say is how do I concatenate all records in a subform?

  3. #3
    Josha is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2019
    Location
    Victoria, Australia
    Posts
    42

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,550
    That is what I would have offered.
    theDBguy has a similiar function.
    http:http://www.accessmvp.com/thedbguy/codes.php/
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 4
    Last Post: 06-19-2019, 07:36 AM
  2. Replies: 7
    Last Post: 04-16-2018, 07:43 PM
  3. Replies: 8
    Last Post: 01-26-2018, 03:28 PM
  4. Conditional value from subreport to main report?
    By aellistechsupport in forum Reports
    Replies: 4
    Last Post: 06-10-2014, 02:08 PM
  5. Replies: 1
    Last Post: 04-15-2013, 10:02 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