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!

Uncheck item in listbox

Status
Not open for further replies.

tpoettker

Programmer
Jan 4, 2002
41
US
I have a listbox on a form. The style is set to checkbox. I am able to obtain the items checked, populate my tables but I can't uncheck the boxes when I am ready to begin again.

Can someome help?

Thanks,

Tina Poettker
 
Untested Code:

Code:
    For I = 1 to List1.ListCount
        List1.Selected(I) = False
    Next I

Cassandra
 
Hi Tina:

In my previous posting, I forgot that the listbox index is zero based. So, replace Selected(I) with Selected(I-1)

Cassandra
 
Thank you so much. It looks so easy yet I couldn't get it.

Tina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top