Re: Query by form
- From: "Tom" <Thomas.T.Holman@xxxxxxxxx>
- Date: 29 Jun 2006 12:21:03 -0700
Adding the word "DISTINCT" to the SQL in the Row Source under
Properties for the combo boxes did not seem to make a difference. Am I
doing it wrong?
pietlinden@xxxxxxxxxxx wrote:
Tom wrote:
Hello,
I have a database of employee data in access and I am trying to create
a form with combo boxes for criteria (ex. gender, office, position,
etc.) that let the user select criteria from drop down menus (ex. they
may select Male, New York, Manager) and those criteria will be used to
run a query (ie Query by Form). I can do this with text boxes but when
I tried to use combo boxes no records were returned in the query. Any
idea what I am doing wrong?
Sounds like either you have a multi-column combobox and you're not
filtering on the column you think you are. Although how that would
happen in a true filter by form, I'm not sure.
Also, is there an easy way to remove duplicates from the combo boxes?
Change the SQL.
SELECT Position
FROM tblEmployees...
to
SELECT DISTINCT Position....
.
- Follow-Ups:
- Re: Query by form
- From: fredg
- Re: Query by form
- References:
- Query by form
- From: Tom
- Re: Query by form
- From: pietlinden
- Query by form
- Prev by Date: Re: How to shut off ALL Menus ?
- Next by Date: Re: How do you count the similar data in MS Access
- Previous by thread: Re: Query by form
- Next by thread: Re: Query by form
- Index(es):
Relevant Pages
|