I am getting this error when i run the following code
SELECT ProblemCategory.ProblemCategory, IIf(IsNull(Count(JobRecords.JobID),0, Count(JobRecords.JobID) )) AS JobsInCat
FROM CustomerContracts INNER JOIN (CoveredSites INNER JOIN (ProblemCategory right JOIN JobRecords ON ProblemCategory.ProbCatID = JobRecords.ProbCatID) ON CoveredSites.SiteID = JobRecords.SiteID) ON CustomerContracts.CustomerID = CoveredSites.CustomerID
WHERE (((CustomerContracts.CustomerID)=1))
GROUP BY ProblemCategory.ProblemCategory;
its the
IIf(IsNull(Count(JobRecords.JobID),0, Count(JobRecords.JobID) ))
bit which is causing the probs but not sure what is wrong with it
SELECT ProblemCategory.ProblemCategory, IIf(IsNull(Count(JobRecords.JobID),0, Count(JobRecords.JobID) )) AS JobsInCat
FROM CustomerContracts INNER JOIN (CoveredSites INNER JOIN (ProblemCategory right JOIN JobRecords ON ProblemCategory.ProbCatID = JobRecords.ProbCatID) ON CoveredSites.SiteID = JobRecords.SiteID) ON CustomerContracts.CustomerID = CoveredSites.CustomerID
WHERE (((CustomerContracts.CustomerID)=1))
GROUP BY ProblemCategory.ProblemCategory;
its the
IIf(IsNull(Count(JobRecords.JobID),0, Count(JobRecords.JobID) ))
bit which is causing the probs but not sure what is wrong with it