Re: Query by form
- From: "Tom" <Thomas.T.Holman@xxxxxxxxx>
- Date: 29 Jun 2006 13:53:08 -0700
In the design view of the recruiting survey for the gender control
combo box, my SQL code is:
SELECT DISTINCT RecruitingSurvey.ID, RecruitingSurvey.Gender FROM
RecruitingSurvey ORDER BY [Gender];
The code for the rest of the drop downs is parallel in structure...
fredg wrote:
On 29 Jun 2006 12:21:03 -0700, Tom wrote:
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....
How can anyone tell? You haven't posted your actual SQL.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.
- Follow-Ups:
- Re: Query by form
- From: Bob Quintal
- Re: Query by form
- References:
- Query by form
- From: Tom
- Re: Query by form
- From: pietlinden
- Re: Query by form
- From: Tom
- Re: Query by form
- From: fredg
- Query by form
- Prev by Date: Re: Query by form
- Next by Date: Re: How to shut off ALL Menus ?
- Previous by thread: Re: Query by form
- Next by thread: Re: Query by form
- Index(es):
Relevant Pages
|