Hello,
Have a stock room with some item rarely used and want to phase out items least used. I am going to list items added three years ago and not been used in the last three years.
I have a table that is downloaded with the dates as [mm]=month [dd]=day [cc]=century [yy]=year.
Put together as Expr1: CDate(Format([ptadmm] & "/" & [ptaddd] & "/" & [ptadcc] & [ptadyy],"mm/dd/yy")) and use <Date()-1095 in the criteria.
Now this works in the add in date because all spaces are filled but the trouble is with the pulled dates.
If I set a similar expression I get #Error for items that have never been picked, all the dates show as 0. I have been able to use this Expr2: IIf([ptlpcc]=0,Date()-4500,CDate(Format([ptlpmm] & "/" & [ptlpdd] & "/" & [ptlpcc] & [ptlpyy],"mm/dd/yy"))) to fill in all items with a date.
I wanted this to fill using three years from current date but if I add <Date()-1095 in the criteria I get a pop up with Date Type Mismatch In Criteria Expression.
I can not change the way the download fills the table and want to know if there is another way around this?
Have a stock room with some item rarely used and want to phase out items least used. I am going to list items added three years ago and not been used in the last three years.
I have a table that is downloaded with the dates as [mm]=month [dd]=day [cc]=century [yy]=year.
Put together as Expr1: CDate(Format([ptadmm] & "/" & [ptaddd] & "/" & [ptadcc] & [ptadyy],"mm/dd/yy")) and use <Date()-1095 in the criteria.
Now this works in the add in date because all spaces are filled but the trouble is with the pulled dates.
If I set a similar expression I get #Error for items that have never been picked, all the dates show as 0. I have been able to use this Expr2: IIf([ptlpcc]=0,Date()-4500,CDate(Format([ptlpmm] & "/" & [ptlpdd] & "/" & [ptlpcc] & [ptlpyy],"mm/dd/yy"))) to fill in all items with a date.
I wanted this to fill using three years from current date but if I add <Date()-1095 in the criteria I get a pop up with Date Type Mismatch In Criteria Expression.
I can not change the way the download fills the table and want to know if there is another way around this?