Combo Box Question

  • Thread starter Anatoly Kurilin
  • Start date
A

Anatoly Kurilin

Hi, I got no problem with inserting an additional item into the Row Source
of an combo box, for instance:
SELECT tblProject.ProjectID, tblProject.ProjectName FROM tblProject UNION
SELECT "0", "<ALL>" from tblProject ORDER BY tblProject.ProjectName;

But I need to insert Null, not 0. If i do it in the way:
SELECT tblProject.ProjectID, tblProject.ProjectName FROM tblProject UNION
SELECT Null, "<ALL>" from tblProject ORDER BY tblProject.ProjectName;
the combo box contains <ALL> in the list, but after choosing it there's no
"<ALL>" in the combo box left.

A. Kurilin
 
V

Van T. Dinh

I don't think you can associate Null with "<ALL>" in this case since if the
ComboBox has Null value, this means that it is *unassigned*, i.e. no "row"
selected, and therefore the visible Text component of the ComboBox is blank.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top