R
RobG, Brisbane Aust
Green banding is the application of a background colour (yes, the proper
English spelling) to a row of data to make it easier to see on a report and
I would like to do the same on a form when veiwed on a screen.
I have been very comfortable with doing "green banding" in reports but have
an issue to do so in a form. I can't see how to apply such a band to a
"detail" line of a form when presented on screen. The "green band" for
reports is done using the "on format" property as below. But there is no "on
format" property on the properties of a "detail" section of form.
How can I do a green band on a form?
Example Greenband for reports
(Explicit declaration)
Dim greenbar As Boolean
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If greenbar Then
Detail.BackColor = 12181965 'a nice shade of pale green that prints well
Else
Detail.BackColor = vbWhite ' forced to resort to American spelling !
End If
greenbar = Not (greenbar)
End Sub
English spelling) to a row of data to make it easier to see on a report and
I would like to do the same on a form when veiwed on a screen.
I have been very comfortable with doing "green banding" in reports but have
an issue to do so in a form. I can't see how to apply such a band to a
"detail" line of a form when presented on screen. The "green band" for
reports is done using the "on format" property as below. But there is no "on
format" property on the properties of a "detail" section of form.
How can I do a green band on a form?
Example Greenband for reports
(Explicit declaration)
Dim greenbar As Boolean
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If greenbar Then
Detail.BackColor = 12181965 'a nice shade of pale green that prints well
Else
Detail.BackColor = vbWhite ' forced to resort to American spelling !
End If
greenbar = Not (greenbar)
End Sub