T
Travler
I have the following query which should return records more than 14 days old
for loaned equipment. The query is as follows:
SELECT AD_LOANEDASSETS.AssetNumber, AD_LOANEDASSETS.ComponentModel,
AD_LOANEDASSETS.SerialNumber, AD_LOANEDASSETS.DateIssued,
AD_LOANEDASSETS.AUNumber, AD_LOANEDASSETS.AuthorisedBy
FROM AD_LOANEDASSETS
WHERE (((AD_LOANEDASSETS.DateIssued)>[dateissued]-14) AND
((AD_LOANEDASSETS.AssetReturned)="no") AND ((AD_LOANEDASSETS.IsDeleted)=0))
ORDER BY AD_LOANEDASSETS.ComponentModel;
I know that it should return one 1 record at present, but it is not. Playing
around with the '<>' returns either 0 records or 2 (which meet the
AssetReturned and IsDeleted criteria).
Access 2003, date format is dd/mm/yyyy.
I was wondering if it was to do with the way SQL looks at dates?
Any help please.
for loaned equipment. The query is as follows:
SELECT AD_LOANEDASSETS.AssetNumber, AD_LOANEDASSETS.ComponentModel,
AD_LOANEDASSETS.SerialNumber, AD_LOANEDASSETS.DateIssued,
AD_LOANEDASSETS.AUNumber, AD_LOANEDASSETS.AuthorisedBy
FROM AD_LOANEDASSETS
WHERE (((AD_LOANEDASSETS.DateIssued)>[dateissued]-14) AND
((AD_LOANEDASSETS.AssetReturned)="no") AND ((AD_LOANEDASSETS.IsDeleted)=0))
ORDER BY AD_LOANEDASSETS.ComponentModel;
I know that it should return one 1 record at present, but it is not. Playing
around with the '<>' returns either 0 records or 2 (which meet the
AssetReturned and IsDeleted criteria).
Access 2003, date format is dd/mm/yyyy.
I was wondering if it was to do with the way SQL looks at dates?
Any help please.