Need Help with Conditional Formatting

buddyleee5

Registered User.
Local time
Today, 13:04
Joined
Nov 17, 2011
Messages
19
I have a report generating from a query that has the following data:

Name...Partner...Status
Hospital...CML...Open
Mall...CML...Open
Store...CML...Closed
Hospital...MDL...Open
Mall...MDL..Open
Hosital...JRL...Open


and I want to alternate the row highlights based on the partner column- so every row with the partner CML is white then the rows with MDL are gray then the rows with JRL are white.

Is this possible? There are 20 partners and they may or may not be included in the report so I can't just use the list and alternate the format arguments for each partner having their own color
 
Did you check : Add conditional formatting by using an expression? It seems to look like what you want to do..
 
What would you suggest my expression be? I believe it would require me to reference the previous cell and due to the way access works I don't know how to do that
 
Rather than alternating rows, you want to compare if [Partner] is the same as it was in the previous row. If it is, keep the same color code. If not, start the alternate color code.
 
Rather than alternating rows, you want to compare if [Partner] is the same as it was in the previous row. If it is, keep the same color code. If not, start the alternate color code.

Correct, but how do i reference the previous record on a report i guess is my real question
 
Further down the page Paul linked to, there is "Use an expression to apply conditional formatting to one or more controls". That should do what you want.

Strike that. What controls the order of your rows?
 
Last edited:
Further down the page I linked to, there is "Use an expression to apply conditional formatting to one or more controls". That should do what you want.

Strike that. What controls the order of your rows?

I have a sort starting with Due date then by partner
 
How are you with VBA? I think you're going to have to use a recordset to accomplish this, unless someone else has a better idea.
 

Users who are viewing this thread

Back
Top Bottom