bravindra Posted January 12, 2009 Share Posted January 12, 2009 Hi,In my database some times fileds may contains null values. when i am printing them in ireport i want to check whether it is null or not. if it is null, then i want to print it as '-'.Could you please help me how to do that. Regards,Ravindra Link to comment Share on other sites More sharing options...
CaptnTony Posted January 12, 2009 Share Posted January 12, 2009 Personally, I'd let the database do the data management and let the report engine report on what is returned. This means that I might use the IsNull() in my SQL Stmt. Syntax:Select IsNull(<field>, 'N/A') AS MyValue From <tablename> Where <constraints>In this case, if my <field> contained a null value, the query would return 'N/A' instead of null.Hope this helps.Post Edited by G. Todd Frahm at 01/12/09 21:28Post Edited by G. Todd Frahm at 01/12/09 21:28 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now