Hi,
I'm trying to put together a recordset but i need to retrieve data based on 2 arguments.
My code at present is
However this appears to not be working.
I want to avoid if possible using
As this will bring back too much data and have an impact on query time.
Can anyone suggest where i'm going wrong?
Thanks in advance.
Cheers,
Leigh
"Give a man a fish and he can feed himself for a day..."
Give him the means to catch his own fish and he can really annoy his partner by spending all his spare time fishing!
I'm trying to put together a recordset but i need to retrieve data based on 2 arguments.
My code at present is
Code:
WHERE ((R.[Sub Group Code 1] = 1 AND
R.[Result Code] = 13) OR
(R.[Sub Group Code 1] = 99 AND R.[Result Code] = 1))
However this appears to not be working.
I want to avoid if possible using
Code:
WHERE R.[Sub Group Code 1] IN (1, 99) AND
R.[Result Code] IN (1, 13)
As this will bring back too much data and have an impact on query time.
Can anyone suggest where i'm going wrong?
Thanks in advance.
Cheers,
Leigh
"Give a man a fish and he can feed himself for a day..."
Give him the means to catch his own fish and he can really annoy his partner by spending all his spare time fishing!