Gazzamuffin
MIS
I am trying to use an If statement to change the background colour of cells in a crosstab query based on the values of the column and row headings. I have written something like this but it just isn't working.
if {column a} = "1" then
if {row 1} = "a" then crRed
else
if {row 2} = "b" then crGreen
else crRed
else
if {column b} = "2" then
if {row 1} = "a" then crRed
else
if {row 2} = "b" then crGreen
else crGreen
Basically it won't change the colours depending on the headings, it just formats all the cells in the first colour in the statement.
Is there another function that will do this?
Cheers
Gaz
if {column a} = "1" then
if {row 1} = "a" then crRed
else
if {row 2} = "b" then crGreen
else crRed
else
if {column b} = "2" then
if {row 1} = "a" then crRed
else
if {row 2} = "b" then crGreen
else crGreen
Basically it won't change the colours depending on the headings, it just formats all the cells in the first colour in the statement.
Is there another function that will do this?
Cheers
Gaz