doucet1963
Registered User.
- Local time
- Today, 04:48
- Joined
- Feb 4, 2017
- Messages
- 18
I have a main form that has a subform that contains checkboxes. I would like the checkbox "Caps_Received" on the main form be true only when the last checkbox "Received" on the subform is true.
The Subform is a datasheet type with a column of checkboxes that belong to the same fields named "Received".
At this time any boxes on the subform "received" will activate the checkbox on the main form named "Caps_Received", that code was easy but this is not what I need.
-------------------------------
Private Sub Received_AfterUpdate()
If Observation_Code > 0 And Me.Received = True Then
'Update your Date Fields
Forms("Frm_Observation_Tracking1").CAPs_Received = True
Else
'Update your Date Fields
Forms("Frm_Observation_Tracking1").CAPs_Received = False
End If
End Sub
--------------------------------
The number of checkboxes on the subform will vary depending on the number of observations.
In a nutshell, I trying to get the main checkbox to be "true" only when the last checkbox of the subform (Field named "Received") is true.
The Subform is a datasheet type with a column of checkboxes that belong to the same fields named "Received".
At this time any boxes on the subform "received" will activate the checkbox on the main form named "Caps_Received", that code was easy but this is not what I need.
-------------------------------
Private Sub Received_AfterUpdate()
If Observation_Code > 0 And Me.Received = True Then
'Update your Date Fields
Forms("Frm_Observation_Tracking1").CAPs_Received = True
Else
'Update your Date Fields
Forms("Frm_Observation_Tracking1").CAPs_Received = False
End If
End Sub
--------------------------------
The number of checkboxes on the subform will vary depending on the number of observations.
In a nutshell, I trying to get the main checkbox to be "true" only when the last checkbox of the subform (Field named "Received") is true.