Drop Down Selecting No Value

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can a drop down be set up to have a no value choice when the table it
references has no such record:

Select Name __________ ^
<No Selection>
Smith, John
Jones, Paul
Smith,Mary

The SQL is Select Name from Name table, but there is no blank record in the
table. Is the only solution to add a blank record to each table and code:

Select IIf(Name is null,'<NoSelection.',Else Name) As Name from nametable ?
 
You can do it with a UNION query ...

SELECT "<No Selection>" FROM SomeTable
UNION SELECT SomeFieldName FROM SomeTable
 
It worked. Thank you.

Brendan Reynolds said:
You can do it with a UNION query ...

SELECT "<No Selection>" FROM SomeTable
UNION SELECT SomeFieldName FROM SomeTable
 
It worked. Thank you.

Brendan Reynolds said:
You can do it with a UNION query ...

SELECT "<No Selection>" FROM SomeTable
UNION SELECT SomeFieldName FROM SomeTable
 

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

Back
Top