in the following example:
SELECT [inventory table].[item number], [inventory table].abc, Max([inventory table].[count date]) AS [last count], Max([count date]+15) AS [next count]
FROM [inventory table]
GROUP BY [inventory table].[item number], [inventory table].abc
HAVING ((([inventory table].abc)="a"))
ORDER BY Max([inventory table].[count date]) DESC;
How can I get the query to calculate a different "next count" depending on what the value of "abc" is?
calculate + 15 if abc =a
calculate + 25 if abc =b
calculate + 60 if abc =c
I know how to do it on three seperate queries but would like to do it on one.
Thanks!
SELECT [inventory table].[item number], [inventory table].abc, Max([inventory table].[count date]) AS [last count], Max([count date]+15) AS [next count]
FROM [inventory table]
GROUP BY [inventory table].[item number], [inventory table].abc
HAVING ((([inventory table].abc)="a"))
ORDER BY Max([inventory table].[count date]) DESC;
How can I get the query to calculate a different "next count" depending on what the value of "abc" is?
calculate + 15 if abc =a
calculate + 25 if abc =b
calculate + 60 if abc =c
I know how to do it on three seperate queries but would like to do it on one.
Thanks!