Results 1 to 4 of 4
  1. #1
    beaverx37 is offline Novice
    Windows 8 Access 2007
    Join Date
    Nov 2014
    Posts
    16

    Combo Box Question

    I have a camp database. I have counselors and campers. I have a camper attendance table and a counselor attendance table. On both tables you can select which camp they are registering for. In my camper attendance form the staff can select which counselor the camper is assigned to. I have this set up and working.

    This is what I need. I want to be able to (after I have selected that counselor Johnny will be at march camp 2015 but counselor Bob will not be) select that camper Frank will be attending march camp 2015 (also already set up) and when I select the drop down box to choose his counselor, it only display counselor Johnny and not counselor Bob.



    Is this possible? If so how would I do this, and where would the code to do it go?

    Thanks!

  2. #2
    ryanmce92 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    48
    I had the same problem trying to do this with a supplier database, I found this video helped me a lot, correct me if I'm wrong but I think that process is called cascading combo boxes. See the video in the link and hopefully this is what you mean

    http://www.youtube.com/watch?v=SpMyGlEInGs

    So you would have March in the form before you select the councillor and once the month is selected only the councillors available in that month will appear?.

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    what you want to do is not necessary - fundamentally speaking - if 1 single Counselor is entered in a db for a Camp - then every Camper in the same Camp defacto has the same Counselor. It really is a matter of display - and you join those together in a query for a report or form display but not part of the form that is assigning Campers to a Camp. Much like assigning a student to a class. If the teacher of that class is in the db - then you don't have to bother assigning the teacher to the student.

    but perhaps your post was not entirely accurate and it is not a single Counselor for the Camp session but a set of them; and you do have to choose among a sub set of Counselors. The combobox of Counselors is based on a record set and that record set can be a query, rather than the whole table. That query can be set up with criteria based upon the camp session. If your Camper assignment form is going to be choosing among Camp sessions then after the Camp session is selected you must trigger the Counselor combobox to requery in order for it to be using the criteria of the Camp session just selected.

  4. #4
    beaverx37 is offline Novice
    Windows 8 Access 2007
    Join Date
    Nov 2014
    Posts
    16
    Quote Originally Posted by NTC View Post
    what you want to do is not necessary - fundamentally speaking - if 1 single Counselor is entered in a db for a Camp - then every Camper in the same Camp defacto has the same Counselor. It really is a matter of display - and you join those together in a query for a report or form display but not part of the form that is assigning Campers to a Camp. Much like assigning a student to a class. If the teacher of that class is in the db - then you don't have to bother assigning the teacher to the student.
    I was taking what I needed and simplifying the issue just for explanation sake, I didn't see the point in listing all 10-20 counselors out of 30-40 possible counselors just to explain what I needed. But thank you both, I think the video ryanmce92 gave me the link to is just what I need.

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

Similar Threads

  1. combo box question
    By billcar2006 in forum Access
    Replies: 2
    Last Post: 03-05-2015, 06:07 AM
  2. Combo Box Question
    By derek7467 in forum Forms
    Replies: 1
    Last Post: 02-20-2014, 07:48 AM
  3. Replies: 4
    Last Post: 08-25-2012, 07:19 PM
  4. Question-Combo-Box
    By rockrider in forum Forms
    Replies: 1
    Last Post: 02-16-2011, 06:24 PM
  5. Combo box question
    By nkenney in forum Forms
    Replies: 1
    Last Post: 07-09-2009, 08:08 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