Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HighLite Data on a report 5

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
0
0
US
Is it possible to highlite every other line on a report..similar to an excel spreadsheet?

I just want to use a soft gray on every other record on a report..

Thanks in Advance DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
Place this in the OnFormat event of your detail:

[tt]
Const cLightGrey = 12632256
Const cWhite = 16777215

If Me.Detail.BackColor = cWhite Then
Me.Detail.BackColor = cLightGrey
Else
Me.Detail.BackColor = cWhite
End If
[/tt]


Hope that helps!
Joe Miller
joe.miller@flotech.net
 
Thanks...

I can use that also, but what I was trying to do is

Make a solid block/line through every other record

eg..the first line on the report would be normal.
the second line would have a solid block of gray through the entire record...

Thanks for your help DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
its not solid...it creates a line under the record and blocks in between the records...maybe this is the way it works...I was trying to get a solid block through the record.. DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
never mind...it would of helped if i would set the back style to transparent...

Thanks for your help guys..

DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
 
hehe . . in time young Skywalker(s), in time...

:) Joe Miller
joe.miller@flotech.net
 
If I'm not too late

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Const vbLightGrey = 12632256
If Me.CurrentRecord Mod 2 = 0 Then
Me.Section(acDetail).BackColor = vbLightGrey
Else
Me.Section(acDetail).BackColor = vbWhite
End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top