Results 1 to 5 of 5
  1. #1
    New.User is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    37

    Add New records and populate existing records via listboxes in forms.

    Hello All,


    i have started to try my hands on access but have hit the wall for some requirements.
    The requirement is I have a many to many relationship between tblTeachers and tblStudents. Currently there is only one teacher in tblStudents and three students in tblTeachers. I also have two multiselect listboxes in a form. When i click on the teacher name in first listbox the three students name get populated in second listbox.
    Now I want a scenario where in if i add a new teacher i must be able to select one or two or all three students (under existing teacher) and populate them. What I do not want is all three existing students getting populated automatically to the new teacher.

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Generic-EventsSchedule V001.zip

    See attached for example of how to manage a many-to-many situation via listboxes.
    The "Events" could be teachers and "Members" could be students, or vice versa.

  3. #3
    New.User is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    37
    Thank you for the reply. i saw your DB but could not derive the information I needed. Pardon me as mine is a simple db but the one you sent had a lot to digest.

  4. #4
    New.User is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    37
    After a long time I was able to find a solution for my case after looking into your sample DB. Thank you

  5. #5
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Glad to hear that. If you have any questions about the DB or how to make it work for you, you can PM me or post here.

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

Similar Threads

  1. Replies: 12
    Last Post: 03-16-2015, 04:57 PM
  2. Replies: 5
    Last Post: 10-24-2013, 10:38 PM
  3. Access 2007 - Creating New Records Based on Existing Records
    By GeorgeAugustinePhillips in forum Forms
    Replies: 9
    Last Post: 10-05-2011, 05:58 PM
  4. Replies: 12
    Last Post: 08-30-2011, 03:36 PM
  5. Populate existing records from Excel
    By oleBucky in forum Import/Export Data
    Replies: 2
    Last Post: 03-08-2011, 12:23 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