Hi,
I wanted to uncheck all check boxes on a form on exit. I added the following to the ON EXIT event of the form. It works, but takes a lot of time to finish. there are close to 700 records on this table:
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
With rs
.MoveFirst
Do While Not rs.EOF
.Edit
!SELECT = 0
.Update
.MoveNext
Loop
End With
rs.Close
Set rs = Nothing
Me.Requery
End Sub
'SELECT' is the name of the check box. Is the code correct? If not, could you correct it?
Thanks.


Unchecking all check boxes on exit
Reply With Quote

