Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a cross tab column 3

Status
Not open for further replies.

sk8er1

Programmer
Jan 2, 2005
229
US
I would like to format the column value of a cross tab.
It will be in a date range...if the column value happens to be the current date value, I would like to color the column with a different color....How is this accomplished....

Thanks so much.
 
Right click on a cell within the grid->change border->background->x+2 and enter:

if GridRowColumnValue ("table.date") = currentdate then crYellow else crNoColor

Within the quotes, place the database field, but remove the curly brackets. Or, go to the customize style tab, highlight the column field and check "Alias for Formulas" to see what should be entered within the quotes.

-LB
 
I can't seem to find the change border->background->
spot. I am using the crystal that comes with Visual Studio.
There is a highlighting expert... Thanks for the help.
 
Not sure what's available in Visual Studio. If you right click on the upper left hand corner of the crosstab, do you see "Border and Colors"? This would take you to the screen with "background".

I don't think you can use the highlighting expert for this, since you want to highlight all values depending on the column label, not on the value itself.

-LB
 
I'll keep looking, but I dont see borders and colors yet
 
Where can I use the CurrentFieldValue and GridRowColumnValue functions in a cross tab to format for a specific situation.
 
Did you find the screen where you can format background color for the crosstab cells? Where do you see "CurrentFieldValue" and "GridRowColumnValue"? The problem is that most of us probably don't know what is available to you in Visual Studio. Is there a "format" tab? If so, what options do you have?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top