B
Bryan Hughes
Hello,
I am having trouble trying figure how to do this query.
I have a table that has [Case File ID], [Case Activity Date] and [Case
Active]. Case Active is a yes/no field (yes is active. no is inactive).
I need to make an active query and inactive query.
My current query looks like this:
SELECT DISTINCTROW tblMain_File.CFID,
[CFN] & " " & [CN] AS Name,
Max(tblCase_File_Activity.CAD) AS MaxOfCAD
FROM tblMain_File INNER JOIN tblCase_File_Activity
ON tblMain_File.CFID = tblCase_File_Activity.CFID
WHERE tblMain_File.GT<>"NA" Or tblMain_File.GT<>"NACF"
AND tblCase_File_Activity.CAS =True
GROUP BY tblMain_File.CFID,
[CFN] & " " & [CN]
ORDER BY tblMain_File.CFID;
On the active query I need to check the max active date where [CAS] is true
against the max active date [CAS] is false. If [CAS] true max date is
greater then [CAS] false max date, then case is active and will show in
query results.
Inactive query is the opposite.
How should I do this?
Please Help!
-Bryan
I am having trouble trying figure how to do this query.
I have a table that has [Case File ID], [Case Activity Date] and [Case
Active]. Case Active is a yes/no field (yes is active. no is inactive).
I need to make an active query and inactive query.
My current query looks like this:
SELECT DISTINCTROW tblMain_File.CFID,
[CFN] & " " & [CN] AS Name,
Max(tblCase_File_Activity.CAD) AS MaxOfCAD
FROM tblMain_File INNER JOIN tblCase_File_Activity
ON tblMain_File.CFID = tblCase_File_Activity.CFID
WHERE tblMain_File.GT<>"NA" Or tblMain_File.GT<>"NACF"
AND tblCase_File_Activity.CAS =True
GROUP BY tblMain_File.CFID,
[CFN] & " " & [CN]
ORDER BY tblMain_File.CFID;
On the active query I need to check the max active date where [CAS] is true
against the max active date [CAS] is false. If [CAS] true max date is
greater then [CAS] false max date, then case is active and will show in
query results.
Inactive query is the opposite.
How should I do this?
Please Help!
-Bryan