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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternate row color in details section 1

Status
Not open for further replies.

ssudha

Technical User
Oct 14, 2002
62
IN
Hi All,

How to give a background color to the alternate row in the details section? Any formula will be greatly appreciated.

Thanks in advance.
 
Go to Format/Section... Choose the Details. On the color tab, click the (x-2) button for the background and use:

if remainder(recordnumber,2)=1 then silver else defaultattribute

If you want to alternate every three row (or any other number) (change the numbers in blue) use:
if remainder(recordnumber,6) in 1 to 3 then silver else defaultattribute Mike
 
Thanks Mike. The formula worked and saved a lot of time for me.

Regards,
Sudha
 
Found this formula really usefull and not just coloring the rows!

Great hint! Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top