christakis
Registered User.
- Local time
- Today, 20:06
- Joined
- Oct 23, 2009
- Messages
- 72
Hi guys,
I have a table called,
tblC1:
ID [Autonumber]
Type [Text, Lookup from Value List]
etc
each record has a type. So I would have Type 1, Type 2, Type 3 apprearing several times.
In my "search" form I want to have a combo-box which will lookup what types are available and display.
I built a query for the row source of the combo box. This is,
SELECT tblC1.ID, tblC1.Type FROM tblC1 WHERE (((tblC1.Type) Is Not Null));
This gets all "Types" and ignores nulls but returns duplicate values. I tried using SELECT DISTINCT but it still returns duplicate values as tblC1.ID is distinct in all cases.
I tried SELECT tblC1.Type FROM tblC1 WHERE (((tblC1.Type) Is Not Null)); but the combobox doesnt show any results (Actually is has options to select from but they have no text).
Am I missing something obvious here? Is there another better way of doing this?
Thanks,
Christakis
I have a table called,
tblC1:
ID [Autonumber]
Type [Text, Lookup from Value List]
etc
each record has a type. So I would have Type 1, Type 2, Type 3 apprearing several times.
In my "search" form I want to have a combo-box which will lookup what types are available and display.
I built a query for the row source of the combo box. This is,
SELECT tblC1.ID, tblC1.Type FROM tblC1 WHERE (((tblC1.Type) Is Not Null));
This gets all "Types" and ignores nulls but returns duplicate values. I tried using SELECT DISTINCT but it still returns duplicate values as tblC1.ID is distinct in all cases.
I tried SELECT tblC1.Type FROM tblC1 WHERE (((tblC1.Type) Is Not Null)); but the combobox doesnt show any results (Actually is has options to select from but they have no text).
Am I missing something obvious here? Is there another better way of doing this?
Thanks,
Christakis