illuzioner
Technical User
Hi,
I have two tables, one with a list of assets and one with a list of prices, setup like this:
tblAssets and tblPrices
--------- -------- ------------------------------
MainSecID ...(other fields) SecID PricingDate Price
^^^^ ^^^ ^^^^
Primary Key Combo Primary keys
They are linked by MainSecID <--> SecID
I'm trying to make a query that will give me all assets and their prices for a particular date, and then another one that will give me one asset's price over a range of dates.
The problem is when I make up the query, adding a new record adds it to both tables, where I only want to add a record into tblPrices for a particular SecID and PricingDate. I don't want to change tblAssets at all from these queries.
Any ideas?
Thanks!
Lou