Hello All,
I am trying to create a query that checks for a couple of criteria. The first one works fine, but the second one I am having a bit of trouble with.
Here is the code:
What I am after is for the code to check the [Email Sent Date] field to check if it is blank.
I am trying to create a query that checks for a couple of criteria. The first one works fine, but the second one I am having a bit of trouble with.
Here is the code:
Code:
SELECT LightDuty.FDID, LightDuty.[First Name], LightDuty.[Last Name], LightDuty.Unit, LightDuty.[Permanent Assignment], LightDuty.[Drs Excuse Exp], LightDuty.[Email Address], LightDuty.[Email Sent Date]
FROM LightDuty
WHERE (((LightDuty.[Email Sent Date])=IsNull([Email Sent Date])) AND ((DateDiff('d',Date(),[Drs Excuse Exp]))=14));
What I am after is for the code to check the [Email Sent Date] field to check if it is blank.