Hi Everybody,
I'm having problems getting my head around finding a value (price) based on a date range. I have created a table which lists product items, price, and date (that the price will come into effect). Some products have more than one price and date.
What I would like to do is, select the product, select, for example a random date, and the query will find price that the product is valued at, at that time.
I've been using the IIf function in queries like...
IIF([DateCosted]>#01/02/2009# And [Product]="House",350,II F([DateCosted]>#02/03/2010# And [Product]="House",450,20 0)) etc
But now I've reached a wall and have to do it another way
I have super limited knowledge of VBA, so I'm hoping the Grandmasters can possibly guide me to another method.
Cheers Eddie
I'm having problems getting my head around finding a value (price) based on a date range. I have created a table which lists product items, price, and date (that the price will come into effect). Some products have more than one price and date.
What I would like to do is, select the product, select, for example a random date, and the query will find price that the product is valued at, at that time.
I've been using the IIf function in queries like...
IIF([DateCosted]>#01/02/2009# And [Product]="House",350,II F([DateCosted]>#02/03/2010# And [Product]="House",450,20 0)) etc
But now I've reached a wall and have to do it another way
I have super limited knowledge of VBA, so I'm hoping the Grandmasters can possibly guide me to another method.
Cheers Eddie
Comment