Results 1 to 4 of 4
  1. #1
    soco3594 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2015
    Location
    Australia
    Posts
    20

    Combobox: Get value from another query AND find record on form

    Hi guys,



    I'm trying to add multiple comboboxes to a form so that I can filter my search results and then display a record on the form based on the last selection. E.g. I have tables for Equipment, Sub-Equipment, and Repair Scope. I want to be able to select from comboboxes on the form as follows:

    Combobox 1: Select Equipment from list
    Combobox 2: Select Sub-Equipment from list based on Equipment selected in Combobox
    Combobox 3: Select Repair Scope from list based on Sub-Equipment selected in Combobox 2 AND show that record on the form

    I can do steps 1 and 2 fine, just not sure how to achieve step 3.

    Thanks in advance

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 64bit Access 2013
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    Here is a tutorial for cascading combo boxes.

    http://www.fontstuff.com/access/acctut10.htm

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    you can try something like this in the combobox3 afterupdate event

    me.filter="ScopeID = " & combobox3
    me.filteron=true

  4. #4
    soco3594 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2015
    Location
    Australia
    Posts
    20
    Thanks guys.

    I'm fine with cascading comboboxes, it was the after update bit I was after. Will give it a go

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

Similar Threads

  1. Replies: 8
    Last Post: 09-15-2015, 11:34 AM
  2. Replies: 1
    Last Post: 05-13-2015, 01:14 PM
  3. Query to Find a Missing Record
    By KCC47 in forum Queries
    Replies: 8
    Last Post: 05-06-2014, 01:25 PM
  4. use record id in combobox query
    By blaimi in forum Queries
    Replies: 3
    Last Post: 11-04-2011, 11:28 PM
  5. Find Record using Query
    By tomself1 in forum Programming
    Replies: 3
    Last Post: 04-18-2011, 09:34 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