Hi
Just need a little clarification on the following:
I have a 2 tables one which has a date field in with the format dd/mm/yyyy, the other has a date format of dd/mm/yyyy/hh:mm:ss.
The second table is used for signing off reports which gives the format as dd/mm/yyyy/hh:mm:ss.
I have created a querie which compares the 2 fields and gives me all the account codes and dates which have not been signed off in time. It works fine the only problem I have is that because of the time it shows all the reports for today too which I don't want to see.
Do you by any chance know any way around this or is it set in stone that if the one field has a date and the other has a date and time that it will show everything for today.
The querie I am using is as follows:
INSERT INTO tblrptDistributionDeadlineMissed ( PortfolioCode, ClientName, [CR Analyst], ProductType, [CRG Deadline], [Distribution Date], Intls, Comment )
SELECT tblTracking.PortfolioCode, tblTracking.ClientName, tblTracking.[CR Analyst], tblTracking.ProductType, tblTracking.[CRG Deadline] AS [Distribution Deadline], qryrptDistributionDate.Date AS [Distribution Date], qryrptDistributionDate.Intls, qryDistributionDateMissed.Comment
FROM (tblTracking LEFT JOIN qryrptDistributionDate ON tblTracking.TrackingID = qryrptDistributionDate.TrackingID) LEFT JOIN qryDistributionDateMissed ON tblTracking.PortfolioCode = qryDistributionDateMissed.PortfolioCode
WHERE (((tblTracking.[CRG Deadline])<Now()) AND ((qryrptDistributionDate.Date)>[tblTracking]![CRG Deadline]))
ORDER BY tblTracking.[CRG Deadline]
WITH OWNERACCESS OPTION;
Any help will be greatly appreciated
Kind regards
Mark
Just need a little clarification on the following:
I have a 2 tables one which has a date field in with the format dd/mm/yyyy, the other has a date format of dd/mm/yyyy/hh:mm:ss.
The second table is used for signing off reports which gives the format as dd/mm/yyyy/hh:mm:ss.
I have created a querie which compares the 2 fields and gives me all the account codes and dates which have not been signed off in time. It works fine the only problem I have is that because of the time it shows all the reports for today too which I don't want to see.
Do you by any chance know any way around this or is it set in stone that if the one field has a date and the other has a date and time that it will show everything for today.
The querie I am using is as follows:
INSERT INTO tblrptDistributionDeadlineMissed ( PortfolioCode, ClientName, [CR Analyst], ProductType, [CRG Deadline], [Distribution Date], Intls, Comment )
SELECT tblTracking.PortfolioCode, tblTracking.ClientName, tblTracking.[CR Analyst], tblTracking.ProductType, tblTracking.[CRG Deadline] AS [Distribution Deadline], qryrptDistributionDate.Date AS [Distribution Date], qryrptDistributionDate.Intls, qryDistributionDateMissed.Comment
FROM (tblTracking LEFT JOIN qryrptDistributionDate ON tblTracking.TrackingID = qryrptDistributionDate.TrackingID) LEFT JOIN qryDistributionDateMissed ON tblTracking.PortfolioCode = qryDistributionDateMissed.PortfolioCode
WHERE (((tblTracking.[CRG Deadline])<Now()) AND ((qryrptDistributionDate.Date)>[tblTracking]![CRG Deadline]))
ORDER BY tblTracking.[CRG Deadline]
WITH OWNERACCESS OPTION;
Any help will be greatly appreciated
Kind regards
Mark