mcyrulik Posted December 26, 2007 Share Posted December 26, 2007 Hey everybody. I have a list of employee records. Because of the way that our payroll system is set up, each employee has 9 records in this table. The table consists of the Employee ID, their name, an earnings code(that is used by our payroll system), and a number(the amount of time in this earnings code) - to name a few. When looking at this list, it is sorted so that all the records associated with an employee are grouped together. What I would like to do is color the groups of records, similar to alternating the backgrounds of a portal row or list view. I can color them no problem, but what I can't figure out is how to tell my calculation that the last group was green, so this group should be red - then green, then red, and so on. Any thought? Link to comment Share on other sites More sharing options...
VICH Posted December 26, 2007 Share Posted December 26, 2007 assign each employeeID its own color...that way regaurdless of the order the colors are always different just a thought though B) Link to comment Share on other sites More sharing options...
comment Posted December 26, 2007 Share Posted December 26, 2007 If it's always 9 records in a group, you could use: Mod ( Div ( Get ( RecordNumber ) - 1 ; 9 ) ; 2 ) Link to comment Share on other sites More sharing options...
mcyrulik Posted December 26, 2007 Author Share Posted December 26, 2007 VICH: thanks, I toyed with that, but with 260 employees, that would suck for me.. Comment: Thanks! Works perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5970 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now