Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding All to an SQL Statement

Status
Not open for further replies.

cranebill

IS-IT--Management
Jan 4, 2002
1,113
US
Hi. I am writing a job costing project in access and am having a little trouble. I have a combo box with this as its source:

SELECT DISTINCT Hoist.Manufacturer FROM Hoist ORDER BY Hoist.Manufacturer;

How can I add the "all" to this so I can have a future recordset select all hoists instead of just the manufacturer selected in this combo box?

Bill
 
Here's one example:

SELECT DISTINCT Hoist.Manufacturer FROM Hoist Union "(All)" from Hoist ORDER BY Hoist.Manufacturer;
 
Ooops! I pressed submit before I review the code. It should be

SELECT DISTINCT Hoist.Manufacturer FROM Hoist Union Select "(All)" from Hoist ORDER BY Hoist.Manufacturer;
 
In doing this will the "(All)" act as the "*" to generate a full list?

Bill
 
are you looking for all of the fields or all of the records from [Hoist]
 
Records. This is so I can get a full list instead of just the one manufatcturer from the combo box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top