Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Crosstabs and GridRowColumnValue

Crosstabs and GridRowColumnValue

Crosstabs and GridRowColumnValue

I am setting the backgound color of column headers like the following:

Select left(GridRowColumnValue("@StateReporting"),1)
Case "1": color(50,230,50)
Case "2": crAqua
Case "3": color(255,150,150)

That part works great. Next I pasted the same formula with the subtotals so the entire column matches the header. That also works. The problem is that there is a cell between the two with the word "Total" I would also like to be the same color, but when I past the formula in there I get the error, "This is not the name of a grid group for the field being formatted." See attachment.

RE: Crosstabs and GridRowColumnValue

Can you copy and paste the design view of the report?

RE: Crosstabs and GridRowColumnValue

Again, it works fine to set the background color based on GridRowColumnValue if you are setting it from either the Column Header or the subtotal field. But the header that just says "Total" cannot reference the GridRowColumnValue of the column name it is under.

RE: Crosstabs and GridRowColumnValue

Ultimately I ended up exporting it to a spreadsheet to get the desired effect:

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close