SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

kdnichols
Posting Yak Master

USA
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?

TIA

Kurt

Sitka
Aged Yak Warrior

USA
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

samuelclay
Yak Posting Veteran

USA
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  
 New 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.06 seconds. Powered By: Snitz Forums 2000