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!

How to get the first row in combobox blank 3

Status
Not open for further replies.

Katya85S

Programmer
Jul 19, 2004
190
Hi guys.
How do I get the first row in combobox blank. It's row source is a Select statement of a table:
Select ID, Field1 from tblTable order by Field1.

The combo box displays the Field1 value, starting from an 'A', but i need it to be a blank unless user specifies otherwise.

thank you all in advance.
 
A bound combo will only be blank if the field it is bound to is blank or null.
 

Use a UNION query to create the blank row. Something like...
Code:
SELECT EmpID, LastName FROM tblEmployees UNION SELECT 0, NULL FROM tblEmployees ORDER BY EmpID

Randy
 
put in the default value that is not in the table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top