Combo Box starting value

  • Thread starter gmazza via AccessMonster.com
  • Start date
G

gmazza via AccessMonster.com

Hey there,
I have a combo box with values, with one value being "None"
How can I get this value to be the first one to show up in my combo box. Asc
and Desc are not doing it for me.
Thanks!
 
J

Jeff Boyce

You don't mention how you are sorting the displayed values in your combobox.

You don't mention whether the combobox is based on a value list or on a
query (or a table).

More info, please...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
S

Stuart McCall

gmazza via AccessMonster.com said:
Hey there,
I have a combo box with values, with one value being "None"
How can I get this value to be the first one to show up in my combo box.
Asc
and Desc are not doing it for me.
Thanks!

(None)

or <None>

will both sort to the top of the list.
 
G

gmazza via AccessMonster.com

I have a query for my combo box and I am not currently sorting it at all. I
just want None to show up as the first choice.
 
S

Stuart McCall

gmazza via AccessMonster.com said:
I have a query for my combo box and I am not currently sorting it at all. I
just want None to show up as the first choice.

Well the only way I know of to achieve that without sorting is to change the
combo's rowsource type to 'value list', then fill it from a recordset based
on your query. That way you can put whatever you like as the 1st entry.

But I don't recommend it. It'll be slow compared to binding the combo to a
field. Personally I'd set the sort order in the query and use parens to get
None to the top.
 

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

Top