O
Opal
I'm not sure how to achieve this in Access 2003...
I have the following query showing when the
next time an employee needs to be certified:
SELECT EMPInfo.EMPNumber,
[LastName] & "," & [FirstName] AS Name,
EMPInfo.SUPLink, EMPInfo.CertDate,
IIf([CertDate] Is Null,Date(),[CertDate]+1095) AS NextDue,
IIf([NextDue]<=Date()-1,"Re-Certification Past Due",
IIf([NextDue]<=Date()+30,"Re-Certification Due","")) AS Flag
FROM EMPInfo
WHERE (((TMInfo.SUPLink)=
[Forms]![HoldingInfo]![txtHoldSUPNumber]));
I want to be able to count the instances where
Re-Certification is Due and where Re-Certification is Past
Due so I am attempting to base another
query on this query - qryEMPCert but I am
getting errors - "Your tried to execute a query that does not
include the specified expression 'Not qryEMPCert.Flag Is Null'
as part of an aggregate function."
How can I count in this query?
I have the following query showing when the
next time an employee needs to be certified:
SELECT EMPInfo.EMPNumber,
[LastName] & "," & [FirstName] AS Name,
EMPInfo.SUPLink, EMPInfo.CertDate,
IIf([CertDate] Is Null,Date(),[CertDate]+1095) AS NextDue,
IIf([NextDue]<=Date()-1,"Re-Certification Past Due",
IIf([NextDue]<=Date()+30,"Re-Certification Due","")) AS Flag
FROM EMPInfo
WHERE (((TMInfo.SUPLink)=
[Forms]![HoldingInfo]![txtHoldSUPNumber]));
I want to be able to count the instances where
Re-Certification is Due and where Re-Certification is Past
Due so I am attempting to base another
query on this query - qryEMPCert but I am
getting errors - "Your tried to execute a query that does not
include the specified expression 'Not qryEMPCert.Flag Is Null'
as part of an aggregate function."
How can I count in this query?