Pikachu2000:
I tried your code and it alternated colors between rows instead of between categories. I have mutliple categories . So there might be 5 rows with the same category, then say 3 rows with a different category, and then maybe 6 rows with yet another category. This can go on and on. What I want to do it make the rows the same color for each category. So in the example above the first 5 rows would be color CCCCFF and then the next 3 rows would be color CCCCCC and then the next 6 rows would be back to CCCCFF. So the background color would alternate color when the category changes.
I also played with the other posts, but I was not quite sure how to make it work with my query pulling in the results.