avoid selection in list box when first opened

  • Thread starter Thread starter george
  • Start date Start date
G

george

Hi,
On a tab page a have a subform with a list box in it. When
I view the tab page the first record of the listbox is
highlighted in black and this doesn't look good.

Is it possible to either avoid having the record
highlighted or (at least) change the selection color to
something else except black?

thanks in advance, george
 
George,

If you want to force the user to select a record in a listbox, use:

lstMyListBox.Value = Null

This assumes your bound column doesn't contain nulls. Use this
statement in the SubForm's Load event.

-Ken
 

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