need help with subquery

polina

Registered User.
Local time
Today, 19:54
Joined
Aug 21, 2002
Messages
100
Hi,

I have this subquery that does not work

If anyone could take a look at that, I'd appreciate it

SELECT NewQuery.Name1, NewQuery.TRANSIT, NewQuery.OP_STATUS, NewQuery.GL_INPUT_TYP
FROM NewQuery
where NewQuery.Name1=
IIf([Count([NewQuery.Name1])=2,[Name1]<>"RBFG",[Name1])

Thanks
 
WHERE IIf((Select Count([Name1]) from NewQuery) =2, [Name1]<>"RBFG", [Name1]=[Name1]);
 

Users who are viewing this thread

Back
Top Bottom