Getting an error on this line
Me![HA3x5CardData subform]!PrintMe = True
Error is:
Update or CancelUpdate without Addnew or Edit
Where do I need to edit, the record source? or?
I want to check the PrintMe boxes on all records that show in the subform.
DougP
Me![HA3x5CardData subform]!PrintMe = True
Error is:
Update or CancelUpdate without Addnew or Edit
Where do I need to edit, the record source? or?
I want to check the PrintMe boxes on all records that show in the subform.
Code:
Dim SyncCriteria As String
Dim f As Form
Dim rs As Recordset
Dim a, TotalRecs As Integer
Set rs = Me![HA3x5CardData subform].Form.RecordsetClone
TotalRecs = rs.RecordCount
For a = 1 To TotalRecs
SyncCriteria = "[HA]='" & Me![HA3x5CardData subform].Form.[HA] & "'"
rs.FindFirst SyncCriteria
Me![HA3x5CardData subform].Form.Bookmark = rs.Bookmark
[COLOR=red]Me![HA3x5CardData subform]!PrintMe = True[/color]
rs.MoveNext
Next
Set rs = Nothing
DougP