I have the following code in a report. I thought it would blackout the two fields in the detail section for the sections where the Job Code is 200. But it is blacking them out for all Job Codes. ( 100, 120, 200, 300, 600, 1500)
Am I putting it in the wrong place?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.JobCd = 200 Then
Me.TotalUnits.BackColor = 0
Me.UnitsPerHour.BackColor = 0
End If
End Sub
Am I putting it in the wrong place?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.JobCd = 200 Then
Me.TotalUnits.BackColor = 0
Me.UnitsPerHour.BackColor = 0
End If
End Sub