hi all after including the BELOW code in my OnFormat Event in the detail bar this is what my report looks like (see attached image).
my back colour is set to white.
Const shadedColor = 16777215
' Const shadedColor = 12632256 ' alternative shade colors
' Const shadedColor = 12632256
' Const shadedColor = 12632256
' Const shadedColor = 12632256
Const normalColor = 12632256
' Choose a color based on the shadeNextRow value
If shadeNextRow = True Then
Me.Section(acDetail).BackColor = shadedColor
Else
Me.Section(acDetail).BackColor = normalColor
End If
' Switch the color for the next row
shadeNextRow = Not shadeNextRow
Detail_Format_Exit:
Exit Sub
Detail_Format_Error:
MsgBox "Error " & Err.Number & ": " & Err.Description
Resume Detail_Format_Exit
my back colour is set to white.
Const shadedColor = 16777215
' Const shadedColor = 12632256 ' alternative shade colors
' Const shadedColor = 12632256
' Const shadedColor = 12632256
' Const shadedColor = 12632256
Const normalColor = 12632256
' Choose a color based on the shadeNextRow value
If shadeNextRow = True Then
Me.Section(acDetail).BackColor = shadedColor
Else
Me.Section(acDetail).BackColor = normalColor
End If
' Switch the color for the next row
shadeNextRow = Not shadeNextRow
Detail_Format_Exit:
Exit Sub
Detail_Format_Error:
MsgBox "Error " & Err.Number & ": " & Err.Description
Resume Detail_Format_Exit