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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Help with Immediate IF
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

232 Posts

Posted - 10/31/2006 :  15:20:31  Show Profile  Send kdnichols an AOL message  Reply with Quote
Hello Everyone,

I have the following syntax:

=IIf(Fields!Disposition.Value= 1, Fields!TMOLoanNbr.Value > 0) Sum( Fields!Disposition.Value)

Is this correct?



Aged Yak Warrior

571 Posts

Posted - 10/31/2006 :  16:07:37  Show Profile  Reply with Quote
There is no IIF in SQL server. Go to the Transact-SQL reference section in the SQL book online and read the CASE topic, or just google CASE SQL

"it's definitely useless and maybe harmful".
Go to Top of Page

Yak Posting Veteran

71 Posts

Posted - 11/01/2006 :  17:25:58  Show Profile  Visit samuelclay's Homepage  Reply with Quote
looks like it could be reporting services report code. I think IIF syntax is :
IIF( (condition),(result1),(result2) )

not sure how that would match up with your code, you have 2 conditionalys seperated by a comma, and only 1 result.

FYI, There is a reporting services section to the forums..
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000