The form layout:
Req Type Beg Recd Not Dev UAT Can Prod Total
Mo # # Assgn
Label val1 val2 val3 val4 val5 val6 val7 val8
Label val1 val2 val3 val4 val5 val6 val7 val8
TOTALS val1 val2 val3 val4 val5 val6 val7 val8
etc.
Each value is coded to count the number of records for each column
Sample Code to count records:
Me![A1] = DCount("[REQUEST_NUMBER]", _
"ADPR_IMPORT_TABLE", _
"(Left([REQUEST_NUMBER], 3) = 'ES ') AND " & _
"[MIS_SUPERVISOR] <> 'ES#6909' AND " & _
"[Request_Date] < #" & VMonthBeginDate & "# AND " & _
"[REQUEST_TYPE] = 11 AND [COMPLEXITY_RANK] = 1 AND " & _
"(([Approved_Date] is null AND [Cancelled_Date] is null) OR " & _
"([Approved_Date] >= #" & VMonthBeginDate & "# OR [Cancelled_Date] >= #" & VMonthBeginDate & "#))"
Sample Code to suppress lines that have a 0 value for VAL8:
Private Sub PRT_TOTALS_41()
If [H41] = 0 Then
[L41].Visible = False
[A41].Visible = False
[B41].Visible = False
[C41].Visible = False
[D41].Visible = False
[E41].Visible = False
[F41].Visible = False
[G41].Visible = False
[H41].Visible = False
End If
End Sub
The code to count the records works.
The code to suppress the rows that VAL 8 is 0 works.
I just need to suppress the gaps between the Request Types where val8 is 0
Does this help??