U
ut4me
I have the following table setup
Table Name - tblInventoryCounts
Field Names - Store Number, Count Date, Item name, Count Amount
Sample Data
Store Number Count date Item Name Count Amount
9 1/4/2010 Gear 10
9 1/11/2010 Gear 18
9 1/18/2010 Gear 18
I have a parameter query where the user is asked for the store number and
Count Date. I need for the query to return the information for the date
entered and the Count Amount from 7 days prior as "Previous Count". So, if
the user entered a value of 9 for Store Number and 1/11/2010 for the Count
Date; the result should me
Store Number Count date Item Name Count Amount Previous
Count
9 1/11/2010 Gear 18
10
I have tried the following as an expression....
(select tblInventoryCount.[Count Amount] from tblInventoryCount where [Count
Date:] = dateadd("d",-7,[Count date:]))
but I can't get it to work....any ideas? Thanks for your help....
Table Name - tblInventoryCounts
Field Names - Store Number, Count Date, Item name, Count Amount
Sample Data
Store Number Count date Item Name Count Amount
9 1/4/2010 Gear 10
9 1/11/2010 Gear 18
9 1/18/2010 Gear 18
I have a parameter query where the user is asked for the store number and
Count Date. I need for the query to return the information for the date
entered and the Count Amount from 7 days prior as "Previous Count". So, if
the user entered a value of 9 for Store Number and 1/11/2010 for the Count
Date; the result should me
Store Number Count date Item Name Count Amount Previous
Count
9 1/11/2010 Gear 18
10
I have tried the following as an expression....
(select tblInventoryCount.[Count Amount] from tblInventoryCount where [Count
Date:] = dateadd("d",-7,[Count date:]))
but I can't get it to work....any ideas? Thanks for your help....