Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using IsNull() in Reporting Services?

Posted on 2004-09-10
4
Medium Priority
?
6,254 Views
Last Modified: 2007-12-19
I can't seem to get the IsNull function to work from within Reporting Services.  Essentially I need to check a series of rows to see If a particular unique identifier is null and if it is, return a statement like 'this value is null'.

It returns that isnull is not declared.

Ideas?

500 points for a quick response!
0
Comment
Question by:aaron240
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
ABaruh earned 2000 total points
ID: 12032084
Use:

IIF(IsNothing(Fields!MyField.Value),"Condition if true", "Condition if false")


The key is IsNothing
0
 
LVL 5

Expert Comment

by:amit1978
ID: 12033663
You can use isnull in MS-SQL Server

select isnull(<FieldName>, 'this value is null') Table_Name

0
 
LVL 7

Expert Comment

by:ABaruh
ID: 12045992
Were you able to test the IsNothing code yet?  
0
 

Author Comment

by:aaron240
ID: 12046399
Posted it on Friday, sorry didn't have a chance to test it over the weekend.  ABaruh your solution was perfect, thanks.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question