I am using a query to feed to report. In this query, I am using following field to provide category statement to serve as report groups. It works fine but I cannot seem to get rid of null records. When I try to exclude null records, I get a parameter prompt for 'survey due'. All other fields are actual fields but 'survey due' is a calculated field. Will appreciate some help in excluding null values.
Survey Alert: IIf([Survey Due]<Date() And IsNull([surrecvd]) And IsNull([spedateord]),"1-Survey due now",IIf([Survey Due]<Date() And [surrecvd] Is Not Null And IsNull([spedateord]),"2-Order survey now",IIf([Survey Due]<Date() And [surrecvd] Is Not Null And [spedateord] And DateDiff("d",[surrecvd],[spedateord])>15,"3-Survey ordered late",Null)))
Survey Alert: IIf([Survey Due]<Date() And IsNull([surrecvd]) And IsNull([spedateord]),"1-Survey due now",IIf([Survey Due]<Date() And [surrecvd] Is Not Null And IsNull([spedateord]),"2-Order survey now",IIf([Survey Due]<Date() And [surrecvd] Is Not Null And [spedateord] And DateDiff("d",[surrecvd],[spedateord])>15,"3-Survey ordered late",Null)))