G
Guest
I am having trouble getting the records I need when I join two tables (SAB
Caseload Tracking and Actions Taken). I joined the two tables because
information that I want to exclude is in a column which uses a table as the
"lookup wizard". I do not want the query to report records where the column
(Final Action Taken) from one table (Actions Taken) says "investigation*";
however the query reports all records based on the other criteria and does
not exclude that info. Below is my SQL statement, I hope someone understands
this and can help me. Thanks, jlw
SELECT [SAB Caseload Tracking].CSN, [SAB Caseload Tracking].[Case Name],
[Actions Taken].[Final Action Taken], [SAB Caseload Tracking].[ASSIGNMENT
TYPES], [SAB Caseload Tracking].[CF Date], [SAB Caseload Tracking].[PAL
Date], [CF Date]+180 AS [180 Mark], [SAB Caseload Tracking].[CM/DC Date]
FROM [SAB Caseload Tracking] LEFT JOIN [Actions Taken] ON [SAB Caseload
Tracking].[Final Action Taken] = [Actions Taken].[Final Action Taken]
WHERE ((([Actions Taken].[Final Action Taken]) Not Like "Investigation*")
AND (([SAB Caseload Tracking].[ASSIGNMENT TYPES]) Not Like "Advisory") AND
(([SAB Caseload Tracking].[CF Date]) Is Not Null) AND (([SAB Caseload
Tracking].[PAL Date]) Is Null) AND (([SAB Caseload Tracking].[CM/DC Date]) Is
Null));
Caseload Tracking and Actions Taken). I joined the two tables because
information that I want to exclude is in a column which uses a table as the
"lookup wizard". I do not want the query to report records where the column
(Final Action Taken) from one table (Actions Taken) says "investigation*";
however the query reports all records based on the other criteria and does
not exclude that info. Below is my SQL statement, I hope someone understands
this and can help me. Thanks, jlw
SELECT [SAB Caseload Tracking].CSN, [SAB Caseload Tracking].[Case Name],
[Actions Taken].[Final Action Taken], [SAB Caseload Tracking].[ASSIGNMENT
TYPES], [SAB Caseload Tracking].[CF Date], [SAB Caseload Tracking].[PAL
Date], [CF Date]+180 AS [180 Mark], [SAB Caseload Tracking].[CM/DC Date]
FROM [SAB Caseload Tracking] LEFT JOIN [Actions Taken] ON [SAB Caseload
Tracking].[Final Action Taken] = [Actions Taken].[Final Action Taken]
WHERE ((([Actions Taken].[Final Action Taken]) Not Like "Investigation*")
AND (([SAB Caseload Tracking].[ASSIGNMENT TYPES]) Not Like "Advisory") AND
(([SAB Caseload Tracking].[CF Date]) Is Not Null) AND (([SAB Caseload
Tracking].[PAL Date]) Is Null) AND (([SAB Caseload Tracking].[CM/DC Date]) Is
Null));