R
Rod
Can anyone figure out why this qurey does not select the following record:
SELECT tblCandidates.SOURCE, tblCandidates.PRIORITY,
tblCandidates.CALLED_ON, tblCandidates.ID, tblCandidates.DNC,
tblCandidates.Num_of_Calls, tblCandidates.[1st_Call],
tblCandidates.[2nd_Call], tblCandidates.[3rd_Call], tblCandidates.Last_Call,
tblCandidates.Archive, tblCandidates.MANAGER, tblCandidates.Booked,
tblCandidates.CANDIDATE, tblCandidates.CALL_RESULTS,
tblCandidates.INPUT_NUMBER, tblCandidates.FOLLOWUP_NUMBER,
tblCandidates.DATE_CONFIRMED, tblCandidates.Confirmation_Msg,
tblCandidates.AREA_CODE, tblCandidates.CONFIRMATION_DATE, "1" & [NUMBER] AS
DIAL_NUMBER, tblCandidates.CORP_OVERVIEW, tblCandidates.RETURNED_CALL,
tblCandidates.COMMENTS, tblCandidates.ATTENDED,
tblCandidates.[NO_SHOW_FOLLOW-UP], tblCandidates.[CO RESULTS],
tblCandidates.[Follow-up_Needed], tblCandidates.IBA_DATE
FROM tblCandidates
WHERE (((tblCandidates.PRIORITY)<3) AND ((tblCandidates.DNC)=False) AND
((tblCandidates.Num_of_Calls)=0) AND ((tblCandidates.CALL_RESULTS)="-")) OR
(((tblCandidates.PRIORITY)<3) AND ((tblCandidates.DNC)=False) AND
((tblCandidates.Num_of_Calls)=0) AND ((tblCandidates.CALL_RESULTS)<>"Bad
Number" And (tblCandidates.CALL_RESULTS)<>"Call Evenings")) OR
(((tblCandidates.PRIORITY)<3) AND ((tblCandidates.DNC)=False) AND
((tblCandidates.Num_of_Calls)=1) AND ((tblCandidates.[2nd_Call])<=Date()) AND
((tblCandidates.Archive)>Date()) AND ((tblCandidates.CALL_RESULTS)<>"Bad
Number" And (tblCandidates.CALL_RESULTS)<>"Call Evenings") AND
((tblCandidates.[CO RESULTS])<>"IBA")) OR (((tblCandidates.PRIORITY)<3) AND
((tblCandidates.DNC)=False) AND ((tblCandidates.Num_of_Calls)=2) AND
((tblCandidates.[3rd_Call])<=Date()) AND ((tblCandidates.Archive)>Date()) AND
((tblCandidates.CALL_RESULTS)<>"Bad Number" And
(tblCandidates.CALL_RESULTS)<>"Call Evenings") AND ((tblCandidates.[CO
RESULTS])<>"IBA")) OR (((tblCandidates.PRIORITY)<3) AND
((tblCandidates.DNC)=False) AND ((tblCandidates.Num_of_Calls)=3) AND
((tblCandidates.Last_Call)<=Date()) AND ((tblCandidates.Archive)>Date()) AND
((tblCandidates.CALL_RESULTS)<>"Bad Number" And
(tblCandidates.CALL_RESULTS)<>"Call Evenings") AND ((tblCandidates.[CO
RESULTS])<>"IBA"))
ORDER BY tblCandidates.SOURCE DESC , tblCandidates.PRIORITY,
tblCandidates.CALLED_ON, tblCandidates.ID DESC;
ID: 79146
CANDIDATE: EDDIE
DNC: False
CALLED_ON: 4/23/2009
Num_of_Calls: 1
CALL_RESULTS: Message
PRIORITY: 1
1st_Call: 4/23/2009
2nd_Call: 6/22/2009
3rd_call: 8/21/2009
Last_Call: 10/20/2009
Archive: 11/19/2009
CO RESULTS: Null 'this field is empty
Note, I left out noting all of the other fields becuase they are not
examined in the query.
Thanks for your help!
SELECT tblCandidates.SOURCE, tblCandidates.PRIORITY,
tblCandidates.CALLED_ON, tblCandidates.ID, tblCandidates.DNC,
tblCandidates.Num_of_Calls, tblCandidates.[1st_Call],
tblCandidates.[2nd_Call], tblCandidates.[3rd_Call], tblCandidates.Last_Call,
tblCandidates.Archive, tblCandidates.MANAGER, tblCandidates.Booked,
tblCandidates.CANDIDATE, tblCandidates.CALL_RESULTS,
tblCandidates.INPUT_NUMBER, tblCandidates.FOLLOWUP_NUMBER,
tblCandidates.DATE_CONFIRMED, tblCandidates.Confirmation_Msg,
tblCandidates.AREA_CODE, tblCandidates.CONFIRMATION_DATE, "1" & [NUMBER] AS
DIAL_NUMBER, tblCandidates.CORP_OVERVIEW, tblCandidates.RETURNED_CALL,
tblCandidates.COMMENTS, tblCandidates.ATTENDED,
tblCandidates.[NO_SHOW_FOLLOW-UP], tblCandidates.[CO RESULTS],
tblCandidates.[Follow-up_Needed], tblCandidates.IBA_DATE
FROM tblCandidates
WHERE (((tblCandidates.PRIORITY)<3) AND ((tblCandidates.DNC)=False) AND
((tblCandidates.Num_of_Calls)=0) AND ((tblCandidates.CALL_RESULTS)="-")) OR
(((tblCandidates.PRIORITY)<3) AND ((tblCandidates.DNC)=False) AND
((tblCandidates.Num_of_Calls)=0) AND ((tblCandidates.CALL_RESULTS)<>"Bad
Number" And (tblCandidates.CALL_RESULTS)<>"Call Evenings")) OR
(((tblCandidates.PRIORITY)<3) AND ((tblCandidates.DNC)=False) AND
((tblCandidates.Num_of_Calls)=1) AND ((tblCandidates.[2nd_Call])<=Date()) AND
((tblCandidates.Archive)>Date()) AND ((tblCandidates.CALL_RESULTS)<>"Bad
Number" And (tblCandidates.CALL_RESULTS)<>"Call Evenings") AND
((tblCandidates.[CO RESULTS])<>"IBA")) OR (((tblCandidates.PRIORITY)<3) AND
((tblCandidates.DNC)=False) AND ((tblCandidates.Num_of_Calls)=2) AND
((tblCandidates.[3rd_Call])<=Date()) AND ((tblCandidates.Archive)>Date()) AND
((tblCandidates.CALL_RESULTS)<>"Bad Number" And
(tblCandidates.CALL_RESULTS)<>"Call Evenings") AND ((tblCandidates.[CO
RESULTS])<>"IBA")) OR (((tblCandidates.PRIORITY)<3) AND
((tblCandidates.DNC)=False) AND ((tblCandidates.Num_of_Calls)=3) AND
((tblCandidates.Last_Call)<=Date()) AND ((tblCandidates.Archive)>Date()) AND
((tblCandidates.CALL_RESULTS)<>"Bad Number" And
(tblCandidates.CALL_RESULTS)<>"Call Evenings") AND ((tblCandidates.[CO
RESULTS])<>"IBA"))
ORDER BY tblCandidates.SOURCE DESC , tblCandidates.PRIORITY,
tblCandidates.CALLED_ON, tblCandidates.ID DESC;
ID: 79146
CANDIDATE: EDDIE
DNC: False
CALLED_ON: 4/23/2009
Num_of_Calls: 1
CALL_RESULTS: Message
PRIORITY: 1
1st_Call: 4/23/2009
2nd_Call: 6/22/2009
3rd_call: 8/21/2009
Last_Call: 10/20/2009
Archive: 11/19/2009
CO RESULTS: Null 'this field is empty
Note, I left out noting all of the other fields becuase they are not
examined in the query.
Thanks for your help!