SteveL13
asked on
How update all records in a subform
I have a main form that has a checkbox and the onclick event of the checkbox is:
If Me.chkbxGrowDay1Selected = True Then
Forms!frmPlanted!subfrmRea dy.Form!tx tReadyDate = Me.txtplantdate + Me.txtGrowDaysCalc
End If
But when the checkbox is clicked only the first record in the subform on the main form is updated. I need all records in the subform to update.
How do I get that to happen? It's almost like it has to loop through the records in the subform but I don't know how to make that happen.
If Me.chkbxGrowDay1Selected = True Then
Forms!frmPlanted!subfrmRea
End If
But when the checkbox is clicked only the first record in the subform on the main form is updated. I need all records in the subform to update.
How do I get that to happen? It's almost like it has to loop through the records in the subform but I don't know how to make that happen.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Execute an update query and then requery the form