T
toolsgg
I have a report where I want to supress the details if the group total is
less than a certain amount. This works fine as long as there are more than
one detail record in the group. If there is only one record, the code is
run, but the record is not supressed. The logic I am using is as follows:
If Val([txtTotalHours]) > 0.166 Or Forms![Billing
Worksheet]![chkInclude10] = -1 Then
Me.Detail.Visible = True
If [txtDetailCount] > 1 Then
Me.GroupFooter0.Visible = True
Else
Me.GroupFooter0.Visible = False
End If
Else
Me.Detail.Visible = False
Me.GroupFooter0.Visible = False
End If
Any ideas?
less than a certain amount. This works fine as long as there are more than
one detail record in the group. If there is only one record, the code is
run, but the record is not supressed. The logic I am using is as follows:
If Val([txtTotalHours]) > 0.166 Or Forms![Billing
Worksheet]![chkInclude10] = -1 Then
Me.Detail.Visible = True
If [txtDetailCount] > 1 Then
Me.GroupFooter0.Visible = True
Else
Me.GroupFooter0.Visible = False
End If
Else
Me.Detail.Visible = False
Me.GroupFooter0.Visible = False
End If
Any ideas?