G
Guest
I’m looking for the equivalent in Access of the VLookup function in Excel,
when the lookup value is between values in the value lookup column. I want to
print a report that prints the cost of various purchased products. A query
of [quantity] * [price] for each product is simple enough but the problem is
that the price changes with time and I want the total value based on the
different prices for that product over time. So, I am thinking of generating
a table (Table 1) of Product, Date of Price Change, and Price. Now I want
the query to have a field that looks up the product’s price based on the date
purchased. So, with Product, Quantity, Date Purchased, and this look up
price as fields, I can complete the query. But the Date Purchased will most
likely fall in between values of the Date of Price Change field in Table 1.
So this is where the Access equivalent of the Excel VLookup function would be
nice to have. Can anyone think of a way to accomplish this in Access?
Thanks,
John
when the lookup value is between values in the value lookup column. I want to
print a report that prints the cost of various purchased products. A query
of [quantity] * [price] for each product is simple enough but the problem is
that the price changes with time and I want the total value based on the
different prices for that product over time. So, I am thinking of generating
a table (Table 1) of Product, Date of Price Change, and Price. Now I want
the query to have a field that looks up the product’s price based on the date
purchased. So, with Product, Quantity, Date Purchased, and this look up
price as fields, I can complete the query. But the Date Purchased will most
likely fall in between values of the Date of Price Change field in Table 1.
So this is where the Access equivalent of the Excel VLookup function would be
nice to have. Can anyone think of a way to accomplish this in Access?
Thanks,
John