P
Prohock
I have a list box called "ListPrint". The Control is "PrintValue" (from the
table TbPrintValue) the Rowsource is "TbPrintForm" (Table that has all the
list box items) and the form's record source is "TbPintValue". I have the
following code to reset the form so that the check boxes in the list box can
be checked again. Unfortunately it does not work and the items checked
remained checked. Please help.
Private Sub Form_Close()
Dim varItem As Variant
For Each varItem In Me!ListPrint.ItemsSelected
Me!ListPrint.Selected(varItem) = False
Next varItem
End Sub
table TbPrintValue) the Rowsource is "TbPrintForm" (Table that has all the
list box items) and the form's record source is "TbPintValue". I have the
following code to reset the form so that the check boxes in the list box can
be checked again. Unfortunately it does not work and the items checked
remained checked. Please help.
Private Sub Form_Close()
Dim varItem As Variant
For Each varItem In Me!ListPrint.ItemsSelected
Me!ListPrint.Selected(varItem) = False
Next varItem
End Sub