HomeGrowth
Technical User
I have 12 ‘If’ statements to check on 16 fields on Detail section, then I format one field (called txtCurr_Version) based on the 12 ‘If’ statements. This is one of ‘if’ statement on the Detail_Format.
If IsNull(Me.txtRevision_num) Then
Me.txtCurr_Version.BorderStyle = 1
Me.txtCurr_Version.BorderColor = vbRed
Me.txtCurr_Version.ForeColor = vbRed
Exit Sub
End If
The Datail_Format is correctly formatted that way I wanted. Now, I have to format the GroupHeader1 based on the Detail format. The if logic is this:
If any of Detail’s txt.Curr_version = vbRed, then the GroupHeader1’s Me.txtTrainingName.BorderColor = vbRed, otherwise = vbGreen
The questions are
(1) Can I format the GroupHeader1 based on the Detail formatting (can I go back to format the GroupHeader)?
(2) If yes, How should I loop the detail from GroupHeader on format property?
Thank you.
If IsNull(Me.txtRevision_num) Then
Me.txtCurr_Version.BorderStyle = 1
Me.txtCurr_Version.BorderColor = vbRed
Me.txtCurr_Version.ForeColor = vbRed
Exit Sub
End If
The Datail_Format is correctly formatted that way I wanted. Now, I have to format the GroupHeader1 based on the Detail format. The if logic is this:
If any of Detail’s txt.Curr_version = vbRed, then the GroupHeader1’s Me.txtTrainingName.BorderColor = vbRed, otherwise = vbGreen
The questions are
(1) Can I format the GroupHeader1 based on the Detail formatting (can I go back to format the GroupHeader)?
(2) If yes, How should I loop the detail from GroupHeader on format property?
Thank you.