In the code below I want to display the checkbox as checked or unchecked depending on a value in the recordset. I haven't been able to find how to do this. I've tried
"lstRtnMthProfile.Selected (1)" to check them but that throws an error.
"lstRtnMthProfile.Selected (1)" to check them but that throws an error.
Code:
Do While Not rsMethodProfiles.EOF
lstRtnMthProfile.Font = "Times New Roman"
lstRtnMthProfile.FontBold = True
lstRtnMthProfile.FontSize = 12
lstRtnMthProfile.AddItem rsMethodProfiles.Fields("MethodDesc")
If (IsNull(rsMethodProfiles("ruleID"))) Then
lstRtnMthProfile.Selected (0) [red]'uncheck the box [/red]
Else
lstRtnMthProfile.Selected (1) [red]'Check the box[/red]
End If
rsMethodProfiles.MoveNext
Loop