C
Chris
Hi There,
I have a form Print Assets, with a subform Print Assets Subform. The two
fields that appear in the subform (sourced from Assets) are Asset and
AllowedtoPrint. The AllowedtoPrint is a checkbox and when selected allows
that record to appear in a report. This works fine!
What I want is a checkbox (PrintAllCheck) on the Print Assets form, when
checked to check all AllowedtoPrint checkboxes and if unchecked, uncheck all
AllowedtoPrint checkboxes.
Here's some code I've tried for AfterUdate, but didn't work
Public Sub PrintAllCheck_AfterUpdate()
If PrintAllCheck.Value = True Then
Forms![Assets]![AllowedtoPrint]!Visible = True
Else
Forms![Assets]![AllowedtoPrint]!Visible = False
End If
End Sub
Thanks
I have a form Print Assets, with a subform Print Assets Subform. The two
fields that appear in the subform (sourced from Assets) are Asset and
AllowedtoPrint. The AllowedtoPrint is a checkbox and when selected allows
that record to appear in a report. This works fine!
What I want is a checkbox (PrintAllCheck) on the Print Assets form, when
checked to check all AllowedtoPrint checkboxes and if unchecked, uncheck all
AllowedtoPrint checkboxes.
Here's some code I've tried for AfterUdate, but didn't work
Public Sub PrintAllCheck_AfterUpdate()
If PrintAllCheck.Value = True Then
Forms![Assets]![AllowedtoPrint]!Visible = True
Else
Forms![Assets]![AllowedtoPrint]!Visible = False
End If
End Sub
Thanks