GavZ
Mostly Beginners Luck!
- Local time
- Today, 17:24
- Joined
- May 4, 2007
- Messages
- 56
hi,
i have a continuous form where i am trying to get a loop statement working, i have tried simplifying it so that if the checkbox in the record is checked the write checked! in the textbox but it still not working!
Can anybody tell me why this isnt looping through the records?
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset("tfiles")
If Not Rs.EOF And Not Rs.BOF Then
Do Until Rs.EOF
If chbox_rec = True Then
tb_test.Value = "Checked!"
Endif
Rs.MoveNext
Loop
Rs.Close
End If
Set Rs = Nothing
i have a continuous form where i am trying to get a loop statement working, i have tried simplifying it so that if the checkbox in the record is checked the write checked! in the textbox but it still not working!
Can anybody tell me why this isnt looping through the records?
Dim Rs As DAO.Recordset
Set Rs = CurrentDb.OpenRecordset("tfiles")
If Not Rs.EOF And Not Rs.BOF Then
Do Until Rs.EOF
If chbox_rec = True Then
tb_test.Value = "Checked!"
Endif
Rs.MoveNext
Loop
Rs.Close
End If
Set Rs = Nothing