Groups | Blog | Home
all groups > sql server reporting services > march 2005 >

sql server reporting services : accessing blank values in a table


Dolly
3/4/2005 1:55:02 PM
Hi,
I am trying to format a column of varchar which has decimal values..Since it
is varchar I was not able to format it directlyu, so had to mulitply and
divide each value by 100 and then apply formatting..Not all the rows of the
table have data, some are blank..and these show up as "#Error" on the
report.I try not to do any operations on them by using "Isnothing" or
comparing each value with "" in the IIf statment..But neither works...Can
someone tell me how I can access the blanks in the table....
Chris Botha
3/5/2005 10:53:26 AM
To see if the column is empty in the IIF statement, use the following syntax
IIF ("" & MyColumn <> "", the rest ...)
It takes an empty string and concatenates the column value to the empty
string, if the column is empty, it results in an empty string.


[quoted text, click to view]

AddThis Social Bookmark Button