C
Chris O''Neill
I have a combobox on a form that is bound to a table that is structure like
this:
ServiceID (AutoNumber) - Unique ID
Service (Text) - Service Description
SubService (Text) - Sub Service Description
Rate (Currency) - Rate Charged for Service
Example data would be as follows:
1 Decorating First Hour $80.00
2 Decorating Added Hrs. $75.00
3 Delivery Local $10.00
4 Delivery Non-Local $25.00
5 Materials $10.00
What I want the combobox to do is display the service description only once
for each main service type, like this:
Decorating
Delivery
Materials
I have tried using SELECT DISTINCT but I still get this in the combo box:
Decorating
Decorating
Delivery
Delivery
Materials
I also tried using SELECT TOP 1 but got this:
Decorating
Is there an SQL statement that will limit the output to just one of each of
the main service types?
Thanks, in advance, for any assistance provided.
Regards, Chris
this:
ServiceID (AutoNumber) - Unique ID
Service (Text) - Service Description
SubService (Text) - Sub Service Description
Rate (Currency) - Rate Charged for Service
Example data would be as follows:
1 Decorating First Hour $80.00
2 Decorating Added Hrs. $75.00
3 Delivery Local $10.00
4 Delivery Non-Local $25.00
5 Materials $10.00
What I want the combobox to do is display the service description only once
for each main service type, like this:
Decorating
Delivery
Materials
I have tried using SELECT DISTINCT but I still get this in the combo box:
Decorating
Decorating
Delivery
Delivery
Materials
I also tried using SELECT TOP 1 but got this:
Decorating
Is there an SQL statement that will limit the output to just one of each of
the main service types?
Thanks, in advance, for any assistance provided.
Regards, Chris