Results 1 to 3 of 3
  1. #1
    aldgard is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    2

    Show specific combinationlist depending on choice in first combinationlist

    Hi,

    I'm a Firefighter in Sweden who happens to know a bit of programming. Therefore I got the assignment to create a functional and easy-to-use reporting system for our vehicles. In all I think I understand Microsoft Access wich they wanted me to build this system in. But since I'm more familiar to JavaScript and PHP I don't really get the programming bits in Visual Basic.



    What I want is that the value choosed in a combinationbox(list) is going to be a "filter" to what is possible to choose in the next combinationbox(list).

    Something like this.

    if vehicle 2010 is choosed in list A then only stuff from 2010 is shown in the next list. And if vehicle 2020 is choosed then of course only stuff from that vehicle is shown.

    Someone who want's to rescue a swedish rescue service?

    /Tobias

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    generically it is called 'cascading' combo boxes - fairly common question - you'll find a lot of Q&A on the topic. Whether it be a List Box or Combo Box - they are essentially sourced on a query - which is accessible in it's property....for the 2nd box you want to modify that query manually to include the criteria of the first box...

    then you need to trigger a requery of box 2 in the AfterUpdate Event of box 1: [Box2Name].requery

  3. #3
    aldgard is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    2
    Thanks NTC, Didn't know it was called cascading, so will be looking closely in Q&A to find some more usefull hints.

    But a huge thank you to you for that push in right direction.

    /Pelle

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

Similar Threads

  1. Replies: 26
    Last Post: 02-09-2015, 11:52 AM
  2. Replies: 3
    Last Post: 07-20-2014, 08:56 PM
  3. Replies: 7
    Last Post: 12-30-2013, 09:53 AM
  4. Replies: 3
    Last Post: 05-03-2013, 09:03 AM
  5. show subform depending on combobox
    By d_Rana_b in forum Programming
    Replies: 2
    Last Post: 03-15-2011, 05:09 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