R
Rod
I have the following query:
SELECT tblCandidates.CANDIDATE, tblCandidates.INPUT_NUMBER,
tblCandidates.CALLED_ON, tblCandidates.MANAGER, tblCandidates.DNC,
tblCandidates.ID, tblCandidates.CALL_RESULTS, tblCandidates.SOURCE,
tblCandidates.FOLLOWUP_NUMBER, tblCandidates.Booked, [AREA_CODE] &
[INPUT_NUMBER] AS [NUMBER], tblCandidates.DATE_CONFIRMED,
tblCandidates.AREA_CODE, tblCandidates.CONFIRMATION_DATE, "1" & [NUMBER] AS
DIAL_NUMBER, tblCandidates.CORP_OVERVIEW, tblCandidates.RETURNED_CALL,
tblCandidates.COMMENTS, tblCandidates.PRIORITY, tblCandidates.ATTENDED,
tblCandidates.[NO_SHOW_FOLLOW-UP], tblCandidates.[CO RESULTS],
tblCandidates.[Follow-up_Needed], tblCandidates.IBA_DATE,
tblCandidates.[1st_Call], tblCandidates.[2nd_Call], tblCandidates.[3rd_Call],
tblCandidates.Last_Call, tblCandidates.Archive, tblCandidates.[Date of 1st No
Show Msg], tblCandidates.Num_of_Calls
FROM tblCandidates
WHERE (((tblCandidates.CANDIDATE) Like "*" & [Beginning of Candidate's Name]
& "*") AND ((tblCandidates.INPUT_NUMBER) Like [7 digit Phone Number] & "*")
AND ((tblCandidates.DNC)=False))
ORDER BY tblCandidates.CALLED_ON DESC;
This query needs to be modified, so when the user is asked to enter the "7
digit phone number" the query will check an additional field. I need it to
also check if the phone number entered is in field FOLLOWUP_NUMBER. If it is
in either field I need it to be returned as it currently does if it is found
in INPUT_NUMBER. So the input of the number needs to be used in two places
in the same query.
Thanks
Rod
SELECT tblCandidates.CANDIDATE, tblCandidates.INPUT_NUMBER,
tblCandidates.CALLED_ON, tblCandidates.MANAGER, tblCandidates.DNC,
tblCandidates.ID, tblCandidates.CALL_RESULTS, tblCandidates.SOURCE,
tblCandidates.FOLLOWUP_NUMBER, tblCandidates.Booked, [AREA_CODE] &
[INPUT_NUMBER] AS [NUMBER], tblCandidates.DATE_CONFIRMED,
tblCandidates.AREA_CODE, tblCandidates.CONFIRMATION_DATE, "1" & [NUMBER] AS
DIAL_NUMBER, tblCandidates.CORP_OVERVIEW, tblCandidates.RETURNED_CALL,
tblCandidates.COMMENTS, tblCandidates.PRIORITY, tblCandidates.ATTENDED,
tblCandidates.[NO_SHOW_FOLLOW-UP], tblCandidates.[CO RESULTS],
tblCandidates.[Follow-up_Needed], tblCandidates.IBA_DATE,
tblCandidates.[1st_Call], tblCandidates.[2nd_Call], tblCandidates.[3rd_Call],
tblCandidates.Last_Call, tblCandidates.Archive, tblCandidates.[Date of 1st No
Show Msg], tblCandidates.Num_of_Calls
FROM tblCandidates
WHERE (((tblCandidates.CANDIDATE) Like "*" & [Beginning of Candidate's Name]
& "*") AND ((tblCandidates.INPUT_NUMBER) Like [7 digit Phone Number] & "*")
AND ((tblCandidates.DNC)=False))
ORDER BY tblCandidates.CALLED_ON DESC;
This query needs to be modified, so when the user is asked to enter the "7
digit phone number" the query will check an additional field. I need it to
also check if the phone number entered is in field FOLLOWUP_NUMBER. If it is
in either field I need it to be returned as it currently does if it is found
in INPUT_NUMBER. So the input of the number needs to be used in two places
in the same query.
Thanks
Rod