You can use IIf
expressions in a WHERE
clause, but I suggest you consider this Switch
expression instead. It returns False when DueDate = 'N/A'
, True when the DateDiff
expression returns a value less than 1 month, and Null otherwise.
WHERE Switch
(
DueDate = 'N/A', False,
DateDiff('m',CDate([DueDate]),Date()) < 1, True
) = True