﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / =IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1) Errors, but does not give me an error code / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 22:36:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: =IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1) Errors, but does not give me an error code</title><link>http://www.sqlservercentral.com/Forums/Topic1403815-391-1.aspx</link><description>IIF is used in SSRS, while it is not a valid T-SQL construct is is a valid Reporting Services construct</description><pubDate>Tue, 08 Jan 2013 01:04:55 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: =IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1) Errors, but does not give me an error code</title><link>http://www.sqlservercentral.com/Forums/Topic1403815-391-1.aspx</link><description>Thanks for your help......I got it to work....=IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2 and Fields!KeptAppointments.Value = 1, 1,0)</description><pubDate>Mon, 07 Jan 2013 14:40:03 GMT</pubDate><dc:creator>Gillian_Pappas2002</dc:creator></item><item><title>RE: =IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1) Errors, but does not give me an error code</title><link>http://www.sqlservercentral.com/Forums/Topic1403815-391-1.aspx</link><description>IIF() is a microsoft Access construct. That won't work with SQL Server.Look into the CASE statement instead.</description><pubDate>Mon, 07 Jan 2013 13:43:13 GMT</pubDate><dc:creator>sturner</dc:creator></item><item><title>RE: =IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1) Errors, but does not give me an error code</title><link>http://www.sqlservercentral.com/Forums/Topic1403815-391-1.aspx</link><description>That is the formula that I added to Visual Studio 2008 calculated formula=IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1)Input field Urgency_level can = 1 - 4, and the Field DateDifference can = 0-100, in the above Fx formulain Visual Studio I and trying to get the calculated field NeedUrgentDates to be true, if the urgency_level = 2and the DateDifference is less than or equal to 2.Thanks for your input.</description><pubDate>Mon, 07 Jan 2013 12:51:08 GMT</pubDate><dc:creator>Gillian_Pappas2002</dc:creator></item><item><title>RE: =IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1) Errors, but does not give me an error code</title><link>http://www.sqlservercentral.com/Forums/Topic1403815-391-1.aspx</link><description>[quote][b]Gillian_Pappas2002 (1/7/2013)[/b][hr]=IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1)gives me "Error" on output, but there are no error codes.  The syntax checks out and the values forfields urgency_level and DateDifference are numeric data.[/quote]obviously it errors with your posted query .. need more info and full query you are trying and I see IIF what is it ? do you mean IF</description><pubDate>Mon, 07 Jan 2013 12:43:04 GMT</pubDate><dc:creator>@SQLFRNDZ</dc:creator></item><item><title>=IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1) Errors, but does not give me an error code</title><link>http://www.sqlservercentral.com/Forums/Topic1403815-391-1.aspx</link><description>=IIF(Fields!urgency_level.Value = 2 and Fields!DateDifference.Value &amp;lt;=2, Fields!NeedUrgentDates, 1)gives me "Error" on output, but there are no error codes.  The syntax checks out and the values forfields urgency_level and DateDifference are numeric data.</description><pubDate>Mon, 07 Jan 2013 12:33:11 GMT</pubDate><dc:creator>Gillian_Pappas2002</dc:creator></item></channel></rss>