T
toolsgg
In a report, I want to be able to supress the details section if the total
for the group is less than a certain value. If there are morte than one
detail record it works fine, but if there is just one detail record in the
group Access seems to ignore the code. I have debugged it and watched it
execute the code, but when you look at the report, the group is not
suppressed. Here is the code I am using in my group footer:
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
Anyone have any ideas how to make this work?
for the group is less than a certain value. If there are morte than one
detail record it works fine, but if there is just one detail record in the
group Access seems to ignore the code. I have debugged it and watched it
execute the code, but when you look at the report, the group is not
suppressed. Here is the code I am using in my group footer:
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
Anyone have any ideas how to make this work?