avoid selection in list box when first opened

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
 
K

Ken Ismert

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
 
Top