Results 1 to 4 of 4
  1. #1
    Cark is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2016
    Posts
    1

    Creating groups and having multiple drop down list options

    It's my first post on these forums so I am open to editing and changing this post as required by the forum rules.



    I have created a database on Microsoft Access 2007 (might be getting access to a newer version in the next few days, so solutions using newer software might still be applicable) in order to organise a project for a flight simulator game (I'm hoping to work in flight simulation later on in life). My strengths lie in game design and not in database management as you will soon see.

    What I currently have so far is a database of aircraft types and registrations of real aircraft which I am trying to model. I have a form which has 2 combo boxes on it where one is independent and the other is dependent on the first. I used the following to learn from
    HTML Code:
    http://www.blueclaw-db.com/download/dependent_combo_box.htm
    and I pulled and edited the parts to make it work in my database. I believe I have correctly gotten the framework for what I want to achieve, the issue I am having is that when I click the drop down on the independent combo box and try selecting my chosen aircraft type, the selection defaults to one of 3 options. It defaults to one of 5 options based on which aircraft type I am trying to select as my database has 5 aircraft types so far. 737-300, 737-800 and 757-200 and a couple of extras. From the screenshots below you will see that when I tried selecting G-CELH (a Boeing 737-300 aircraft) it defaulted to EC-JSJ (which as part of my database is a 737-300). I was able to select the options on my dependent combo box, but I was unable to change my independent one. I believe this has something to do with the fact my Advisor_ID column has multiple values/records (sorry my Access nomenclature is poor) relative to different registrations and that EC-JSJ is top of the list so it defaults to that one.

    The name for the column Advisor_ID is purely taken from the previously mentioned BlueClawDB example and I copied the data from my ModelLink column over to the Advisor_ID. The Student column (another ripped name from BlueClawDB) is a list of 3-d part/model names that I have been creating. What I am wanting to achieve is when I select an aircraft registration, only select parts will be available for selection in the drop down list. For example G-CELA a Boeing 737-300 will only have the option of 737-300 parts and not those part that you would have on a Boeing 757-200. The Student Table which I have seems to be working perfectly fine and I have assigned the respective identifiers to match up with the Advisor_ID column. My issue seems to be lying with the Advisor_ID having multiple options part. Is there a way to group them?

    I'll regularly look back to check for replies and would be happy to clear up any issues and also to clean up this post and make a nice tutorial to help others in the future

    Thanks
    Attached Thumbnails Attached Thumbnails Capture.PNG   Capture2.PNG   Capture3.PNG   Capture4.PNG  

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    Cross-posted at http://www.utteraccess.com/forum/ind...ic=2041038&hl= and
    http://www.access-programmers.co.uk/forums/showthread.php?p=1514607

    Cross-posting is okay, generally - just letting those who reply know so efforts aren't duplicated.

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Would you consider posting your dB for analysis? (do a "Compact & Repsir", then zip it. Click on "Go Advanced", scroll down to Manage attachments. Follow the prompts)

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536

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

Similar Threads

  1. Replies: 2
    Last Post: 04-11-2016, 03:54 PM
  2. Creating Multiple Dependant User Options
    By s.carter in forum Database Design
    Replies: 3
    Last Post: 06-28-2015, 09:24 AM
  3. Replies: 1
    Last Post: 08-11-2014, 09:57 AM
  4. Creating dynamic drop down list
    By SltPhx in forum Access
    Replies: 3
    Last Post: 07-29-2013, 10:17 AM
  5. Creating groups based on multiple values
    By cardgage in forum Queries
    Replies: 2
    Last Post: 03-28-2013, 08:29 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