smalloy
Posts: 107
|
| Posted: 04/21/2005, 11:55 AM |
|
I am writing a report that uses groups utilizing the Simple Groups Example:
http://docs.codecharge.com/studio/html/ProgrammingTechn...Groups.html?toc
BUT... I am using Alternate row colors so I need to change the code to provide for the new Employees.alt_Department.Value as well as the Employees.Department.Value.
Since I am in the BeforeShowRow event how can I tell if the row is standard or the alt?
_________________
Anything can be done, just give me time and money. |
 |
 |
Nicole
Posts: 586
|
| Posted: 04/22/2005, 12:43 AM |
|
Hello,
I deal with it using row counter (i). I declared it above Before Show Row event code and incremented by 1 in Before Show Row event. Even rows are Alt rows and odd rows are normal rows. Here is a code I used:
i = i+1
if int(i/2) = i/2 then
' alt row
else
' normal row
end if
_________________
Regards,
Nicole |
 |
 |
smalloy
Posts: 107
|
| Posted: 04/22/2005, 6:04 AM |
|
Great! Works like a charm!
Thanks
_________________
Anything can be done, just give me time and money. |
 |
 |
|