Results 1 to 3 of 3
  1. #1
    Brightspark98 is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Dec 2016
    Posts
    57

    Populate ListBox from Table(s)

    Hi Everyone,

    I have a listbox with multiple columns
    Columns 0 & 1 display username & group
    Example – Bloggs Joe – Group A. - retrieved from tbl_T_Trainee

    I have a table tbl_C_Groups which stores which Subjects the user has covered on a weekly basis.

    Example.
    Week1 Maths
    Week2 Maths
    Week3 Maths
    Week4 Geography
    Week5 French


    Week6 Geography

    Is it possible to populate the listbox with the subject covered using the table data?
    I only want each subject to appear once, and if possible use only the first two letters of the subject.
    Example

    Bloggs Joe-Group A-Ma-Ge-Fr

    Sounds complicated to me but I hope it is possible.

    Many Thanks
    Mark.

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    A listbox contains the results of a query only - get the query working the way you want it and set it as the listbox's row source.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    From the example it appears you may want:

    http://allenbrowne.com/func-concat.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 13
    Last Post: 09-10-2015, 03:37 PM
  2. Using a Listbox to populate a Textbox.
    By IncidentalProgrammer in forum Forms
    Replies: 7
    Last Post: 10-29-2014, 12:32 PM
  3. Populate listbox from Recordset
    By PATRICK in forum Access
    Replies: 8
    Last Post: 10-28-2013, 11:00 PM
  4. Replies: 1
    Last Post: 08-07-2013, 02:43 PM
  5. Replies: 10
    Last Post: 06-18-2013, 02:00 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