Results 1 to 5 of 5
  1. #1
    DDS is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2018
    Posts
    24

    Expand all comma separated values from a field into a new list

    I have a bound field on a form where the user is prompted to enter distinguishing features about something and separate these features with commas.
    These features may be single words or phrases and the number of different comma separated features entered would vary from record to record.


    Is there is a way to expand all the comma separated values that have been entered into this field from every record and populate a list of all unique values?
    This list of unique values (features) would then be used as the row source of a dropdown list which will function as a kind of 'keyword' or 'keyphrase' filter.
    I'm fairly confident I'd be able to make this work with just a textbox that the user types a keyword into without any assistance, but it'd be great to make this a dropdown list showing all their options instead of just a textbox.

  2. #2
    DDS is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2018
    Posts
    24
    I'll pre-empt suggestions of creating a new table to list the features adding an identifier to link them to the parent record.
    This is a last resort due to space restrictions on the data entry form.

  3. #3
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    If this is a one off requirement, create a temp table utilising a small function using the Split() Function to populate your temp table.
    Then use a make table query to populate your new row source table with a distinct query on the temp table.

    I certainly wouldn't try and populate the combo dynamically using the function - it will be painfully slow if you have more than few records.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    DDS is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Apr 2018
    Posts
    24
    The list will be added to constantly as new records are created so it won't be a one off.
    About 500 records are created each year.
    Another factor is this table is eventually going to be converted to a Sharepoint list.
    If it's going to populate too slowly, perhaps I will need to add each feature as a separate record in a linked table.
    Will do some testing with the few records I have.
    Thanks.

  5. #5
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    If it's only 500 records a year it may not be too bad.

    I think the temp table is still the way to go, as you can link it to the existing main data table to ensure you only update unique records.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Replies: 1
    Last Post: 11-23-2017, 03:22 PM
  2. Replies: 15
    Last Post: 10-05-2017, 12:18 PM
  3. Replies: 5
    Last Post: 09-02-2017, 01:43 PM
  4. Replies: 6
    Last Post: 02-27-2017, 09:06 AM
  5. Replies: 2
    Last Post: 04-07-2011, 10:15 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