Hi Everyone,
I have the following query:
SELECT tblJobCardProcesses.jobCardRef
FROM tblJobCardProcesses
WHERE (((tblJobCardProcesses.workcentreStop) Is Null)) OR (((tblJobCardProcesses.workcentreStop) Is Not Null))
GROUP BY tblJobCardProcesses.jobCardRef
HAVING (((Sum(CLng([stage])))=5)) OR (((Sum(CLng([stage])))=0));
That I would like to change the criteria so that it is ((workcentrestop) Is Null AND SUM(Clng([stage]))=5) OR
((workcentrestop) Is Not Null AND SUM(Clng([stage]))=0)
Everytime I try it I get an aggregate error and I just can't get the syntax right. If I try to do it on two lines in the design view it keeps converting it back to the original. Could anyone please help me.
Thanks in advance for any help,
GPM
I have the following query:
SELECT tblJobCardProcesses.jobCardRef
FROM tblJobCardProcesses
WHERE (((tblJobCardProcesses.workcentreStop) Is Null)) OR (((tblJobCardProcesses.workcentreStop) Is Not Null))
GROUP BY tblJobCardProcesses.jobCardRef
HAVING (((Sum(CLng([stage])))=5)) OR (((Sum(CLng([stage])))=0));
That I would like to change the criteria so that it is ((workcentrestop) Is Null AND SUM(Clng([stage]))=5) OR
((workcentrestop) Is Not Null AND SUM(Clng([stage]))=0)
Everytime I try it I get an aggregate error and I just can't get the syntax right. If I try to do it on two lines in the design view it keeps converting it back to the original. Could anyone please help me.
Thanks in advance for any help,
GPM