Solved

MS Access Form Link Combo Box

Posted on 2014-09-11
3
482 Views
Last Modified: 2014-09-11
I have two combo boxes on a form. Combo1 and Combo2.

Combo1 has a SQL statement as it's rowsource and works as expected.

I would like for Combo2 to be populated based on the value selected from Combo1.

Which Combo1 event property should I use?  

What should the Combo2 row source be?  
?? Syntax ???
Combo2.RowSource = SELECT Column1, Column 2 FROM Table2 WHERE Table1.SelectedColumn = Combo2.Selectedvalue  

I can do this in c# using ASP.NET. MS Access is somewhat different.
I have not used MS Access since Version 2.0
A few hints will do.  I taught MS Access at a local community college 15 years ago.

Thanks,
0
Comment
Question by:Dovberman
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 40317700
0
 

Author Comment

by:Dovberman
ID: 40317757
Thanks,

That's how I remember it. Would you believe that I am a Microsoft Alumni?  I wrote the first tech article on this subject while on the MS Access 1.0 support team in Charlotte in 1991. In fact, I initiated the term "Cascading Combo Boxes".
0
 

Author Closing Comment

by:Dovberman
ID: 40317760
Perfect.

Thanks,
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question