Re: Query by form
- From: Bob Quintal <rquintal@xxxxxxxxxxxxx>
- Date: 30 Jun 2006 17:15:15 GMT
"Tom" <Thomas.T.Holman@xxxxxxxxx> wrote in
news:1151683811.537481.234450@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
Bob,Male,
I tried using that code...but then none of the choices (ex.
Female) are displayed in the combo boxes on the form, justblank
spaces/lines. Any ideas? Thanks again.
Tom
Forget the Lizard, turn it off.
Set the following properties for the gender combobox as follows.
From the fromat tabColumn Count: 1
Column heads: No
List Rows: 2
Column Widths: 1";
from the Data tab.
Row source type: table/query
Row Source: "SELECT DISTINCT [Gender] from RecruitingSurvey
ORDER BY [Gender];"
Bound column: 1
the other properties: read the help, set as desired.
set the other Combobozes similarly.
Bob Quintal wrote:RecruitingSurvey.Gender
"Tom" <Thomas.T.Holman@xxxxxxxxx> wrote in
news:1151614388.827652.112630@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
In the design view of the recruiting survey for the gender
control combo box, my SQL code is:
SELECT DISTINCT RecruitingSurvey.ID,
IdFROM RecruitingSurvey ORDER BY [Gender];
The code for the rest of the drop downs is parallel in
structure...
You do not want the recruitingSurvey.ID in the rowsource for
your ComboBox. This is why you are getting the duplicates.
SELECT DISTINCT RecruitingSurvey.Gender
FROM RecruitingSurvey ORDER BY [Gender];
Is all you want. I know the Combobox Lizard wants to put the
thatthere. If it were a Wizard it would be smart enough to know
it's inappropriate.
Q
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Query by form
- From: Tom
- Re: Query by form
- From: pietlinden
- Re: Query by form
- From: Tom
- Re: Query by form
- From: fredg
- Re: Query by form
- From: Tom
- Re: Query by form
- From: Bob Quintal
- Re: Query by form
- From: Tom
- Query by form
- Prev by Date: Create a multiple parameter search form for a query
- Next by Date: Re: Sending a Pivot Table by Mail
- Previous by thread: Re: Query by form
- Next by thread: Re: Query by form
- Index(es):