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!

How to display data in alternate group color

Status
Not open for further replies.

AK12345

IS-IT--Management
Mar 6, 2003
2
0
0
US
I need to change my report to display data for groups in alternating colors. My Group consist of Before frame with some Data heading (customer name and information), then the content which has detail and at the end, I have totals in the after frame. I need to change the display so that the data for every other customer is in alternating color.
I am using actuate 5.

Appreciate any help!
Thanks
 
Hi
Declalre a global boolean variable. Go to the finish method of the detail frame.
Then check an IF condition and then toggle the value and change the background color also accordingly.
For eg.

If AlternatingBackGroundColorFlag Then
me.BackGroundColor = RGB(240, 240, 240)
AlternatingBackGroundColorFlag = False
Else
AlternatingBackGroundColorFlag = True
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top