Hi Everyone,
I need some help with the lookup I attached below. The "LotterySales" table also has an "InventoryDate" field.
Since the "LotterySales" table will have numerous entries with the same "BOOKNUMBER", I need to
look at the most recent "InventoryDate" field in the "LotterySales" table and return "POSSOLD" if it exists
on the most recent "InventoryDate". If not then return "0".
I hope that makes sense?
Thank you!
I need some help with the lookup I attached below. The "LotterySales" table also has an "InventoryDate" field.
Since the "LotterySales" table will have numerous entries with the same "BOOKNUMBER", I need to
look at the most recent "InventoryDate" field in the "LotterySales" table and return "POSSOLD" if it exists
on the most recent "InventoryDate". If not then return "0".
I hope that makes sense?
Code:
DLookUp("POSSOLD","LotterySales","BOOKNUMBER=" & [BookNumber])
Thank you!