Results 1 to 3 of 3
  1. #1
    vbjohn is offline Novice
    Windows 2K Access 2003
    Join Date
    Aug 2011
    Posts
    10

    ComboBox to ComboBox automatic fill

    Where can I find information on combobox to combobox auto fill?



    What I mean is..
    cmbStudy: (values) 1,2,3,4,5,6
    cmbStudyTypes: (values) depends on what is selected from cmbStudy.


    cmbStudy datasource is from a query
    cmbStudyTypes datasource is also a query

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    based on part 1 of your question I would've assumed that cmbStudy is the PK and cmbStudyType is a description for that. So I would've said set the sombobox to 2 columns with the bound column set to the PK and under column size set it to 0;2 (with the 2 based on the size of the description. However Looking at the 2nd part of your question it looks like the 2 combo boxes are based on different queries. Can you post the SQL for them? I could give a better answer then.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    What you're asking about is called cascading combo boxes where you want the results of a combo box to affect the available choices in a second combo box.

    There are hundreds of articles about cascading combo boxes but the gist is that after you update or exit your first combo box you have to update the contents of the second combo box. Further, the second combo box must be a query based on the input from the first combo box. If you do a search on this forum (or google it) for cascading combo boxes you'll find what you want.

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

Similar Threads

  1. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  2. Replies: 5
    Last Post: 07-29-2011, 03:07 PM
  3. Replies: 6
    Last Post: 07-28-2011, 04:07 AM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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