| ||||||
|
|
| New! Download Access Report Banding Database Example |
In this example we use 'Dim gbl_shade As Boolean'. Create the event procedure code as show below. This code will interrogate the gbl_shade variable and when it is True the report line background color gets changed (in this case the highlight color will be yellow-gold). After the if statement the code switches the gbl_shade variable to the opposite boolean value.

Newly figured out simple method without all the complexity of the above alternating line color code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As
Integer)
If Me.Detail.BackColor = 16777215 Then
Me.Detail.BackColor = 12582910
Else
Me.Detail.BackColor = 16777215
End If
End Sub
Now, isn't the above code much simpler?
|
A Blue Claw Database Design Template: Personnel Agency Access Template |
|
A Blue Claw Database Design Article: ODBC Links To Other DB Systems |
|
|