Solved

Filter combobox using the value of another combobox

Posted on 2009-04-02
4
538 Views
Last Modified: 2013-12-25
The program I'm working on would use the value of ComboBox1 to filter the results of ComboBox2, i'm using an MS access db that has two tables:
1- Countries, which contains:: countryID, countryName
2- Projects, which contains:: ProjectName, CountryID

ComboBox1 contains a list of the countries, which i managed to do using a dataset
When a user chooses a country,  ComboBox2 should only display the projects within the chosen country.

Please help.
0
Comment
Question by:MariamAlsowaidi
4 Comments
 
LVL 11

Expert Comment

by:bmatumbura
ID: 24047803
Filter ComboBox2's data source using the ID of the field selected in ComboBox1
0
 

Author Comment

by:MariamAlsowaidi
ID: 24047896
I'd like to know how that's done. I know i should filter the results using an sql query and enter the results into a dataset, but I don't know how to do that.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 24047998
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

821 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