To give a background I am not a programmer, so I wont understand lots of complicated code all that well, though I will try.
I have a table with ingredients in it, and a table with prices in it by date, these tables are both linked via a crossover table
Relevent fields are:
Ingredient database: tblIng_Spec_Detail
Ing_specID - Primary field
Prices Database: tblIngredientPrices
IngredientPricesID - Primary field of the actual prices database
Then I could like to combine the text on the other records in this table, so I have called this result (in the query)
"Price" (there are three records, ammount, currency and mesurement, so basically I am combining the recordss to say £1.00 P/Kg, etc.))
The Crossover table: tblPricePerIngredient
PricePerIngredientID - Primary key
Both the above tables primary keys
"Date price goes live" this is the date I want to query.
The table will contain future dates as well as past dates.
I would like the query to be able to return the price for the latest date before "today".
So basically I want to be able to say have the query return the three records:
Ing_SpecID, "Date price goes live", "Price"
Displaying
Ing_SpecID, Latest date previous to today, "Price".
Can anyone help me to do this please.
Thank you.
I have a table with ingredients in it, and a table with prices in it by date, these tables are both linked via a crossover table
Relevent fields are:
Ingredient database: tblIng_Spec_Detail
Ing_specID - Primary field
Prices Database: tblIngredientPrices
IngredientPricesID - Primary field of the actual prices database
Then I could like to combine the text on the other records in this table, so I have called this result (in the query)
"Price" (there are three records, ammount, currency and mesurement, so basically I am combining the recordss to say £1.00 P/Kg, etc.))
The Crossover table: tblPricePerIngredient
PricePerIngredientID - Primary key
Both the above tables primary keys
"Date price goes live" this is the date I want to query.
The table will contain future dates as well as past dates.
I would like the query to be able to return the price for the latest date before "today".
So basically I want to be able to say have the query return the three records:
Ing_SpecID, "Date price goes live", "Price"
Displaying
Ing_SpecID, Latest date previous to today, "Price".
Can anyone help me to do this please.
Thank you.