G
Guest
On the form load event of one of my subforms, I want to loop through the
recordset, and set the value of an unbound checkbox for each record in the
subform. I tried this, where bit2 is the name of the unbound checkbox:
Private Sub Form_Load()
Dim ds As Recordset
Set ds = [Form_Commitment subform].Recordset
While Not ds.EOF
If (ds("bit1date") <> "") Then
bit2 = True
End If
ds.MoveNext
Wend
End Sub
However, the line bit2 = True checks all of the checkboxes in the entire
column. Is there a way for me to reference the checkbox only in the current
record if the checkbox is not bound?
Thanks,
Pete
recordset, and set the value of an unbound checkbox for each record in the
subform. I tried this, where bit2 is the name of the unbound checkbox:
Private Sub Form_Load()
Dim ds As Recordset
Set ds = [Form_Commitment subform].Recordset
While Not ds.EOF
If (ds("bit1date") <> "") Then
bit2 = True
End If
ds.MoveNext
Wend
End Sub
However, the line bit2 = True checks all of the checkboxes in the entire
column. Is there a way for me to reference the checkbox only in the current
record if the checkbox is not bound?
Thanks,
Pete