Morning
I am sure this will be astoundingly simple but I can't see whats going on.
I am running a report that has a simple number field to order the layout. I need specific rows of data to show a different tect colour. So if the row has group order number is one it needs to black anything else a different colour. I have put the following code on one field and it either sets them all to black or the other colour depending on what I set. Where am I going wrong?
Private Sub Report_Load()
If Me.GroupOrder = 2 Then
Me.Total.ForeColor = RGB(0, 0, 0)
Else
Me.Total.ForeColor = RGB(153, 53, 153)
End If
End Sub
Thanks in advance.
I am sure this will be astoundingly simple but I can't see whats going on.
I am running a report that has a simple number field to order the layout. I need specific rows of data to show a different tect colour. So if the row has group order number is one it needs to black anything else a different colour. I have put the following code on one field and it either sets them all to black or the other colour depending on what I set. Where am I going wrong?
Private Sub Report_Load()
If Me.GroupOrder = 2 Then
Me.Total.ForeColor = RGB(0, 0, 0)
Else
Me.Total.ForeColor = RGB(153, 53, 153)
End If
End Sub
Thanks in advance.