Hi All
Hope you are well!!
I am having a problem showing null values in the following query. I want to show the records which where signed off late and those that haven't been signed off at all up to todays date. Any help would be greatly appreciated..
I have tried inserting OR ((qrybAttn.Date) Is Null)) but then it shows all the records and not just up to today.
SQL Code
INSERT INTO ytblAttnIPSLAmissed ( PortfolioCode, RunDeadline, [Attn Date], [IP Date], [SLA Date] )
SELECT tblTracking.PortfolioCode, tblTracking.RunDeadline, qrybAttn.Date, qrybIP.Date, qrybSLA.Date
FROM ((tblTracking LEFT JOIN qrybAttn ON tblTracking.TrackingID = qrybAttn.TrackingID) LEFT JOIN qrybIP ON tblTracking.TrackingID = qrybIP.TrackingID) LEFT JOIN qrybSLA ON tblTracking.TrackingID = qrybSLA.TrackingID
WHERE (((tblTracking.RunDeadline)<Now()) AND ((Format([qrybAttn].[Date],"Short Date"))>Format([RunDeadline],"Short Date")))
WITH OWNERACCESS OPTION;
Thanks again.
Regards
Mark
Hope you are well!!
I am having a problem showing null values in the following query. I want to show the records which where signed off late and those that haven't been signed off at all up to todays date. Any help would be greatly appreciated..
I have tried inserting OR ((qrybAttn.Date) Is Null)) but then it shows all the records and not just up to today.
SQL Code
INSERT INTO ytblAttnIPSLAmissed ( PortfolioCode, RunDeadline, [Attn Date], [IP Date], [SLA Date] )
SELECT tblTracking.PortfolioCode, tblTracking.RunDeadline, qrybAttn.Date, qrybIP.Date, qrybSLA.Date
FROM ((tblTracking LEFT JOIN qrybAttn ON tblTracking.TrackingID = qrybAttn.TrackingID) LEFT JOIN qrybIP ON tblTracking.TrackingID = qrybIP.TrackingID) LEFT JOIN qrybSLA ON tblTracking.TrackingID = qrybSLA.TrackingID
WHERE (((tblTracking.RunDeadline)<Now()) AND ((Format([qrybAttn].[Date],"Short Date"))>Format([RunDeadline],"Short Date")))
WITH OWNERACCESS OPTION;
Thanks again.
Regards
Mark