Hello !
As you know, the prices are, unfortunately, dynamic "objects".
So, I have a table for products:
tblProducts
ID_Product - Autonumber (PK)
ProductName
and a table for prices
tblProductsPrices
ID_ProductPrice - Autonumber (PK)
ID_Product - Number (FK on tblProducts
Price - Double
PriceDate - Date/Time
The problem:
I have a certain date.
I need to know the available prices at that date for all products.
Thank you !
PS_1
I have a solution; but, for each product, I apply an external function that use two aggregate functions: DMax and Dlookup
For my small tables, this isn't a problem but I like to know if it is a better way.
PS_2
Note, please, that my skills are quite nulls regarding the SQL.
So, try to design for me something that I can see in Queries Design View.
As you know, the prices are, unfortunately, dynamic "objects".
So, I have a table for products:
tblProducts
ID_Product - Autonumber (PK)
ProductName
and a table for prices
tblProductsPrices
ID_ProductPrice - Autonumber (PK)
ID_Product - Number (FK on tblProducts
Price - Double
PriceDate - Date/Time
The problem:
I have a certain date.
I need to know the available prices at that date for all products.
Thank you !
PS_1
I have a solution; but, for each product, I apply an external function that use two aggregate functions: DMax and Dlookup
For my small tables, this isn't a problem but I like to know if it is a better way.
PS_2
Note, please, that my skills are quite nulls regarding the SQL.
So, try to design for me something that I can see in Queries Design View.