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

How to change color every other two rows

Status
Not open for further replies.

taree

Technical User
May 31, 2008
316
US
I use this script to change the color of the record when the record number is an odd number. However, the customer wants for the color to be changed every other two rows no matter what the row number is. I am not sure how this can be done.also, ask if it is only one row in the end then to move it to the next page.
Code:
if remainder(recordnumber,2)=0 then color(223,254,254) else nocolor

[code]
 
got it thank you all.

Code:
if remainder(recordnumber,4)=1 or remainder(recordnumber,4)=2 then color(225,255,255) else nocolor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top