Results 1 to 4 of 4
  1. #1
    shellaccess is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    5

    Unhappy Populating table info from table in drop down list

    Hello-



    I am trying to figure out how to do the following:

    I have a table with the following info:
    Field1 Field2
    student teacher
    john mr. smith
    mark mr. smith
    todd mr. smith
    alan mrs. Jones
    steve mrs. Jones

    I have a form that has a drop down with an option for individual teacher (based on the one previously selected) and all teachers. I want it to populate a second drop down with students assigned to that teacher, and all students if all teachers are selected from the first drop down. How can i do this? I have tried using a query and also some basic VBA script from looking through MS Access books and am not having any success at all.

    I.E:

    Mrs. Jones is using the DB.
    Mrs. Jones selects "her students" and the the second drop down should populate with just her students. She will then proceed to select the student and enter grading info. If she selects "all students" all students should show in the second drop down to be selected for grading.

    Thank you in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Dependent combo/list boxes. Review http://datapigtechnologies.com/flash...combobox2.html

    Filter form records. Review http://datapigtechnologies.com/flash...tomfilter.html

    Or build form/subform arrangement. http://office.microsoft.com/en-us/ac...010098674.aspx

    Or some combination of dependent combobox and form/subform.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    shellaccess is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    5
    Thanks but I really need a solution and not more reading material at this point. Also, the links did not help since I am asking for something that is slightly more advanced-- or at least seems to be since its not working

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Those links do have solution, especially the DataPigTech tutorials. They visually demonstrate the techniques you need to learn and are narrated. They explain better than I can in a forum post.

    Why isn't it working? The technique demonstrated for dependent comboboxes is exactly what you describe you want. However, you need to be aware that dependent comboboxes that have a RowSource that is a lookup don't work nice in Continuous or Datasheet view forms.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-04-2012, 02:32 PM
  2. Replies: 1
    Last Post: 09-12-2011, 10:15 AM
  3. Replies: 7
    Last Post: 09-06-2011, 08:00 PM
  4. Table drop down list filter
    By jbataille86 in forum Access
    Replies: 2
    Last Post: 08-05-2011, 08:37 AM
  5. Replies: 3
    Last Post: 01-31-2011, 11:47 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