?
Solved

Filter not working

Posted on 2012-09-06
1
Medium Priority
?
266 Views
Last Modified: 2012-09-06
I have attached the sample database.  When you open the Providers Form you will see 4 combo boxes,  They are used in tandem with each other.  When you select state and then select County, as you will see all the occurances of each county appears. I want to show the county name once. I have tried using the Distinct statement in the query but to no avail.  This happens for the city, county and speciality combo boxes.
Filters.accdb
0
Comment
Question by:seamus9909
1 Comment
 
LVL 29

Accepted Solution

by:
IrogSinta earned 2000 total points
ID: 38371844
Adding DISTINCT seems to work fine...
 Me.cmbCounty.RowSource = "SELECT Distinct County FROM Provider WHERE County Is Not Null AND State = " & Me.cmbState

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

809 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