Hi All,Any help is appreciated as I think I am almost there!so what I want to do is from a report which contains a lot of data to select basically the data that matches the month and year of yesterday's date.I have this expression but am getting a red squiggle under the Today() in the first part for some reason and it won't work..[code="sql"]=sum(iif(Fields!Month_Place_Test.Value = DatePart(DateInterval.Month, DateAdd(DateInterval.Day, -1, Today()),0, iif(Fields!Year_Place_posted.Value = datepart(DateInterval.Year, Dateadd(DateInterval.Day, -1, Today()), Fields!Places_Posted.Value))))[/code]I am so almost there, I can feel it but can't work out where I have gone wrong.Thanks for the help as alwaysEdited for Today not now and putting it around code heh
↧