You need to set the flag to true once its started:
VB Code:
Private Sub Product_Click(Index As Integer) Static Blah As Boolean If Blah = True Then: Exit Sub Blah = True ' <-- checked_box = 0 For I = 0 To Product.Count - 1 Blah = True Product.Item(I).Value = 0 Next I checked_box = Index Product.Item(Index).Value = 1 Blah = False End Sub
Phreak




Reply With Quote