Results 1 to 5 of 5
  1. #1
    Ramtrap is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Dec 2016
    Posts
    62

    Concatenating Values to a Single Textbox

    Hi All,

    I've gotten a lot of help through here in regards to putting a bunch of values into a single textbox via this link: http://allenbrowne.com/func-concat.html

    Now I've come across another issue. Some background:

    I have a Conference Scheduling Database that is structured, for the most part, as below:

    Click image for larger version. 

Name:	QueryAndRels.PNG 
Views:	13 
Size:	30.6 KB 
ID:	31187

    These are the results of the query:
    Click image for larger version. 

Name:	QryResults.PNG 
Views:	13 
Size:	18.2 KB 
ID:	31188

    This is the form results:
    Click image for larger version. 

Name:	Form.PNG 
Views:	13 
Size:	19.7 KB 
ID:	31189

    These are how I want my results to look:
    Click image for larger version. 

Name:	ExpectedQryResults.PNG 
Views:	13 
Size:	5.8 KB 
ID:	31190

    The issue I want to solve is I want to allow a user to view all the days of a conference someone may attend. The way it works is like this:
    Someone creates two conference: Conference X and Conference Y
    Conference X
    is a three-day conference (Day 1, Day 2, Day 3)
    Conference Y
    is a one-day conference (Day 1)


    Because conferences can be single or multi-day, I have the two tables. The "Conference_Main" table allows for the creation of the actual conference...the marquis, if you will. It will then automatically create Day 1, as all conference HAVE to have at least one day.

    Now, the Person_to_Conference table is a table that tracks what people are going to what conference, and what days (tracking by their individual IDs). I'm not sure if it's a query issue or a "WHERE" issue that I need solved to return the appropriate data. Right now, my function, created from the link above, goes like this:
    =ConcatRelated("Day","Qry_PerToConfByDay","PersonID=" & [PersonID] And "ConferenceID=" & [ConferenceID])

    I get results that show the collection of all persons and all the days that have been attended. Can someone please help me with my query, or is my WHERE statement (in red) wrong?
    Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    have you tried a Crosstab query to do this?

  3. #3
    Ramtrap is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Dec 2016
    Posts
    62
    Quote Originally Posted by ranman256 View Post
    have you tried a Crosstab query to do this?
    I haven't. Still an Access newbie, but I'll do some research and see what I can come up with. Thanks for the suggestion!

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    try

    "PersonID=" & [PersonID] & " And ConferenceID=" & [ConferenceID]

  5. #5
    Ramtrap is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Dec 2016
    Posts
    62
    Quote Originally Posted by Ajax View Post
    try

    "PersonID=" & [PersonID] & " And ConferenceID=" & [ConferenceID]
    <Slow clap> That works perfectly. Im in your debt. I promise to notify any future cross-post, and apologize for it. Thank you very much!

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

Similar Threads

  1. Add multiple values to single textbox
    By Ramtrap in forum Forms
    Replies: 22
    Last Post: 11-09-2017, 10:24 AM
  2. Replies: 5
    Last Post: 02-04-2017, 07:34 AM
  3. Replies: 8
    Last Post: 01-31-2017, 06:14 PM
  4. Replies: 10
    Last Post: 11-18-2014, 04:25 PM
  5. Replies: 1
    Last Post: 05-26-2013, 09:45 PM

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