Reggie2004
Technical User
I have 2 queries. They are exact opposites. But I am losing 4 records. Can anyone help? I am just going to list the 2 queries.
First
FROM Filter
WHERE((((Filter.[TC-530])="TC-530"))
Or (((Filter.[TC-150])="TC-150"))
Or (((IsNull((Filter.DOD)))=False))
Or (((Filter.DOB)<#1/1/1929#))
Or (((Filter.DOB)>#1/1/1986#))
Or (((IsNull((Filter.[SSN S])))=False))
Or (((Filter.[TC-421])="TC-421"))
Or (((Filter.[TC-420])="TC-420"))
Or (((Filter.[TC-424])="TC-424"))
Or (((Filter.[TC-540])="TC-540"))
Or (((Filter.[LFRZ-RFRZ])="-C"))
Or (((Filter.[LFRZ-RFRZ])="-W"))
Or (((Filter.[LFRZ-RFRZ])="-O"))
Or (((Filter.[LFRZ-RFRZ])="-V"))
Or (((Filter.[LFRZ-RFRZ])="Z"))
Or (((Filter.[LFRZ-RFRZ])="-L"))
Or (((Filter.[TC-594])="TC-594"))
Or (((Filter.[TC-599])="TC-599"))
Or (((Filter.[TC-290])="TC-290"))
Or (((Filter.[TC-291])="TC-291"))
Or (((Filter.[TC-300])="TC-300"))
Or (((Filter.[TC-301])="TC-301"))
Or (((Filter.[TC-976])="TC-976"))
Or (((Filter.[TC-977])="TC-977"))
Or (((Filter.MODULE_BALANCE)>"0")));
Second
FROM Filter
WHERE( (((Filter.[TC-530])<>"TC-530"))
And (((Filter.[TC-150])<>"TC-150"))
And (((IsNull((Filter.DOD)))=True))
And (((Filter.DOB)>#1/1/1929#))
And (((Filter.DOB)<#1/1/1986#))
And (((IsNull((Filter.[SSN S])))=True))
And (((Filter.[TC-421])<>"TC-421"))
And (((Filter.[TC-420])<>"TC-420"))
And (((Filter.[TC-424])<>"TC-424"))
And (((Filter.[TC-540])<>"TC-540"))
And (((Filter.[LFRZ-RFRZ])<>"-C"))
And (((Filter.[LFRZ-RFRZ])<>"-W"))
And (((Filter.[LFRZ-RFRZ])<>"-O"))
And (((Filter.[LFRZ-RFRZ])<>"-V"))
And (((Filter.[LFRZ-RFRZ])<>"Z"))
And (((Filter.[LFRZ-RFRZ])<>"-L"))
And (((Filter.[TC-594])<>"TC-594"))
And (((Filter.[TC-599])<>"TC-599"))
And (((Filter.[TC-290])<>"TC-290"))
And (((Filter.[TC-291])<>"TC-291"))
And (((Filter.[TC-300])<>"TC-300"))
And (((Filter.[TC-301])<>"TC-301"))
And (((Filter.[TC-976])<>"TC-976"))
And (((Filter.[TC-977])<>"TC-977"))
And (((Filter.MODULE_BALANCE)<"0")));
Reg
First
FROM Filter
WHERE((((Filter.[TC-530])="TC-530"))
Or (((Filter.[TC-150])="TC-150"))
Or (((IsNull((Filter.DOD)))=False))
Or (((Filter.DOB)<#1/1/1929#))
Or (((Filter.DOB)>#1/1/1986#))
Or (((IsNull((Filter.[SSN S])))=False))
Or (((Filter.[TC-421])="TC-421"))
Or (((Filter.[TC-420])="TC-420"))
Or (((Filter.[TC-424])="TC-424"))
Or (((Filter.[TC-540])="TC-540"))
Or (((Filter.[LFRZ-RFRZ])="-C"))
Or (((Filter.[LFRZ-RFRZ])="-W"))
Or (((Filter.[LFRZ-RFRZ])="-O"))
Or (((Filter.[LFRZ-RFRZ])="-V"))
Or (((Filter.[LFRZ-RFRZ])="Z"))
Or (((Filter.[LFRZ-RFRZ])="-L"))
Or (((Filter.[TC-594])="TC-594"))
Or (((Filter.[TC-599])="TC-599"))
Or (((Filter.[TC-290])="TC-290"))
Or (((Filter.[TC-291])="TC-291"))
Or (((Filter.[TC-300])="TC-300"))
Or (((Filter.[TC-301])="TC-301"))
Or (((Filter.[TC-976])="TC-976"))
Or (((Filter.[TC-977])="TC-977"))
Or (((Filter.MODULE_BALANCE)>"0")));
Second
FROM Filter
WHERE( (((Filter.[TC-530])<>"TC-530"))
And (((Filter.[TC-150])<>"TC-150"))
And (((IsNull((Filter.DOD)))=True))
And (((Filter.DOB)>#1/1/1929#))
And (((Filter.DOB)<#1/1/1986#))
And (((IsNull((Filter.[SSN S])))=True))
And (((Filter.[TC-421])<>"TC-421"))
And (((Filter.[TC-420])<>"TC-420"))
And (((Filter.[TC-424])<>"TC-424"))
And (((Filter.[TC-540])<>"TC-540"))
And (((Filter.[LFRZ-RFRZ])<>"-C"))
And (((Filter.[LFRZ-RFRZ])<>"-W"))
And (((Filter.[LFRZ-RFRZ])<>"-O"))
And (((Filter.[LFRZ-RFRZ])<>"-V"))
And (((Filter.[LFRZ-RFRZ])<>"Z"))
And (((Filter.[LFRZ-RFRZ])<>"-L"))
And (((Filter.[TC-594])<>"TC-594"))
And (((Filter.[TC-599])<>"TC-599"))
And (((Filter.[TC-290])<>"TC-290"))
And (((Filter.[TC-291])<>"TC-291"))
And (((Filter.[TC-300])<>"TC-300"))
And (((Filter.[TC-301])<>"TC-301"))
And (((Filter.[TC-976])<>"TC-976"))
And (((Filter.[TC-977])<>"TC-977"))
And (((Filter.MODULE_BALANCE)<"0")));
Reg