J
juanakhusted via AccessMonster.com
My original query reads as follow:
SELECT [qryFG/RMList].[Formulation#], RACK.Code, [qryFG/RMList].PRODUCT,
[qryFG/RMList].ContainerDesc, [qryFG/RMList].[PkgID#], RACK.[RACK#], RACK.
[Batch#], RACK.CURRENTINVENTORY, RACK.RESERVEINVENTORY, RACK.[Tote#], CDate
(Left([Batch#],2) & "/" & Mid([Batch#],3,2) & "/" & Mid([Batch#],5,2)) AS
Strip, IIf([Strip]<Date()-60,CInt(1),CInt(0)) AS AgedDate
FROM RACK LEFT JOIN [qryFG/RMList] ON RACK.Code = [qryFG/RMList].Code
WHERE (((RACK.[Batch#])<>"0") AND ((RACK.CURRENTINVENTORY)>0))
ORDER BY RACK.Code;
Basically, I have converted the Batch # field to return a date. I eventually
want to return record values that are 60+ days old. This works just fine
until I try to filter only those records where the AgedDate expression
returns the value of 1. This is where I get the date type mismatch error
statement. Any auggestions?
SELECT [qryFG/RMList].[Formulation#], RACK.Code, [qryFG/RMList].PRODUCT,
[qryFG/RMList].ContainerDesc, [qryFG/RMList].[PkgID#], RACK.[RACK#], RACK.
[Batch#], RACK.CURRENTINVENTORY, RACK.RESERVEINVENTORY, RACK.[Tote#], CDate
(Left([Batch#],2) & "/" & Mid([Batch#],3,2) & "/" & Mid([Batch#],5,2)) AS
Strip, IIf([Strip]<Date()-60,CInt(1),CInt(0)) AS AgedDate
FROM RACK LEFT JOIN [qryFG/RMList] ON RACK.Code = [qryFG/RMList].Code
WHERE (((RACK.[Batch#])<>"0") AND ((RACK.CURRENTINVENTORY)>0))
ORDER BY RACK.Code;
Basically, I have converted the Batch # field to return a date. I eventually
want to return record values that are 60+ days old. This works just fine
until I try to filter only those records where the AgedDate expression
returns the value of 1. This is where I get the date type mismatch error
statement. Any auggestions?