Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Cascading List Box in MS Access

  • 10-08-2011 11:37am
    #1
    Registered Users, Registered Users 2 Posts: 1,894 ✭✭✭


    I'm trying to create a cascading list box on an Access Form. I'm trying to set it up so that the user will choose a "sector" and then that will allow only the organisations in that sector to be chosen.

    Any help at all would be appreciate as I've never done this before.

    I haven't used Access in a few years, so please feel free to speak in very simple terms!


Comments

  • Closed Accounts Posts: 23,718 ✭✭✭✭JonathanAnon


    Could you not have a dropdown box listing the "sectors" and have a list box below it which is populated based on what the user selects in the dropdown box? ... tbh, hard to assess without seeing the data..


  • Registered Users, Registered Users 2 Posts: 1,894 ✭✭✭dreamer_ire


    I guess you could, is that easier? Have never done that either. How would I get the list box to populate from the drop down? Forgive me if that's a really stupid question.

    Thanks


  • Closed Accounts Posts: 23,718 ✭✭✭✭JonathanAnon


    How would I get the list box to populate from the drop down? Forgive me if that's a really stupid question. Thanks

    There will be an OnChange event that will be set off every time the dropdown box changes... Have the listbox requery after the value has changed... The listbox should be dependent on a query that depends on the value of the dropdown box... something like "SELECT * FROM TABLE WHERE SECTOR = dropdownbox.value();" .. that's half code half pseudo code (cos I dont know the field names or input types).. but should give you the idea..


  • Registered Users, Registered Users 2 Posts: 1,894 ✭✭✭dreamer_ire


    Thanks Jonathan, will try that in the morning.


Advertisement