Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Call Column

Author  Topic 

sz1
Aged Yak Warrior

555 Posts

Posted - 2013-02-26 : 10:05:47
Hi

I have created several columns with expressions, not actual fields, how do I call a column thats not in the dataset? so a column called Test for example, how would I call this to work out conditional formatting?
Thanks

SZ1
Learning and development is the driving force in the universe...!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-26 : 22:59:43
you can call it using ReportItems collection

ReportItems!Textboxname.value etc

also if you're trying to set conditional formatting for same textbox and has to invoke its own content use Me.value

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sz1
Aged Yak Warrior

555 Posts

Posted - 2013-02-27 : 05:08:37
Thanks

Can you show me an example using the Me.value for conditional formatting, thanks.

SZ1
Learning and development is the driving force in the universe...!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-27 : 05:14:44
=IIF(Me.value <0,"Red","Black")

set the above expression inside font color property of textbox to make negative values appear in red

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

sz1
Aged Yak Warrior

555 Posts

Posted - 2013-02-27 : 05:38:43
Ok so the Me.value looks at its own cell/data...
Thanks

SZ1
Learning and development is the driving force in the universe...!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-27 : 23:17:56
yep...it does

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -