Option Compare Database
Option Explicit
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim i As Integer
i = 0
Select Case Month(Date)
Case 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8
If (Sumofmonths < 9) Then
Me.lbl1.Visible = True
i = i + 1
End If
Case 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8
If (Sumofmonths < 19) Then
Me.lbl2.Visible = True
i = i + 1
End If