Unselecting Row in ListBox

J

JamesJ

I have 3 ListBoxes on a form. When I click on a
row in one ListBox I want to unselect any row
that might be selected in the other ListBoxes.

Thanks,
James
 
J

Jeff Boyce

James

Are you saying that when ListBox3 gets the focus, you want ListBox1 and
ListBox2 to have nothing selected?

If so, look into adding an event procedure in ListBox3's GotFocus event,
setting ListBox1 and ListBox2 to Null.
 
J

JamesJ

Yes and it worked like a charm.

Thanks,
James

Jeff Boyce said:
James

Are you saying that when ListBox3 gets the focus, you want ListBox1 and
ListBox2 to have nothing selected?

If so, look into adding an event procedure in ListBox3's GotFocus event,
setting ListBox1 and ListBox2 to Null.

--
Regards

Jeff Boyce
<Office/Access MVP>
 
Top