View Full Version : Make first line in detail area a different color


Garyj
08-19-2003, 10:57 AM
How do I get the first line of my report changed to a different background color. My first line on every report will have a a unique transaction id of "0" and in the sourcename field the unique name is "Opening Balance". All I want to do is to just have the first line be displayed any color but its orginal.

I want to highlight this line only and not the rest of the transactions below it.

Thank you in advance.

Tiro Cupidus
08-19-2003, 11:26 AM
In the Format event of the Detail section (if that's the section you're using):Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [Unique Transaction ID] = 0 Then
[YourControl].BackColor = WhateverColor
End If
End SubSomething like that I think.

samehkh
08-19-2003, 12:54 PM
More general case:
If you dont know what data will be in the record
you can use

If Me.CurrentRecord=recordnumber Then
....
End if