JeanieGreene
Registered User.
- Local time
- Today, 10:37
- Joined
- Nov 13, 2017
- Messages
- 24
Hi again. I am trying to make a checkbox on a continuous form, bound to a query, update all the forms that are check with a given "case number" that is entered into a text box. I have the following code, but it is not looping at all. It will only put the data into the line that I clicked on last.
Any idea what I am doing wrong?
Code:
Option Compare Database
Dim rs As DAO.Recordset
Private Sub Command17_Click()
Set rs = Me.RecordsetClone
With rs
rs.MoveFirst
Do Until rs.EOF
If Check13 = True Then
rs.Edit
CADEventNumber = txtCaseNumber
rs.Update
End If
rs.MoveNext
Loop
End With
rs.Close
Set rs = Nothing
Me.Requery
End Sub
Any idea what I am doing wrong?
Last edited by a moderator: