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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deselecting Items in a List Box

Status
Not open for further replies.
Nov 24, 2003
57
US
Does anyone know how I can create a procedure to deselect selected items in a list box when the users hits the command button? I know how to write code that will remove the entries from the list box but I don't want to remove them just deselect them.

If anyone knows and you can let me know, I'd appreciate it. Thanks.
 
Dim i As Integer

For i = 0 To List0.ListCount - 1
List0.Selected(i) = False

Next

ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top