H
Hanksor
I have a report that has a textbox named "Total2004" with a data source of
Total04. I would like to have the background color change if the value of
Total2004 is 0. Below is the code I have at this point, but all backgrounds
of total2004 change instead of just the ones with a value of 0.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [Total2004].Value = 0 Then
[Total2004].BackColor = vbRed
[Total2004].ForeColor = vbBlack
End If
End Sub
Where am I going wrong? I'm using 97 so I don't have the use of conditional
formating.... Any help will be appreciated.
Thanx,
Total04. I would like to have the background color change if the value of
Total2004 is 0. Below is the code I have at this point, but all backgrounds
of total2004 change instead of just the ones with a value of 0.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [Total2004].Value = 0 Then
[Total2004].BackColor = vbRed
[Total2004].ForeColor = vbBlack
End If
End Sub
Where am I going wrong? I'm using 97 so I don't have the use of conditional
formating.... Any help will be appreciated.
Thanx,