Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List box question

Status
Not open for further replies.

ghacig

Technical User
Sep 24, 2004
60
US
This is probably very easy, but I don't know how to do it. I have a multiselect list box on a form with a visible property set to False. There is a command button that sets the visible property to True.

Is there any way I can make sure that every time the listbox appears (becomes visible), nothing is selected. In other words, how do I clear the selections?

Appreciate any help. Thanks.
 
Try resetting the rowsource:

[tt]me!lstList.rowsource=me!lstList.rowsource[/tt]

Roy-Vidar
 
in the command button, add the code to REQUERY:

me.listbox.requery

(sub your list box name for 'listbox')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top