It sounds easy enough, but I guess I am missing something.
I have two tables, Purchase Order Receipts and Market Prices. I joined the two tables based on part number, with join property as "select all from receipts".
Market prices change every month, and not all parts have a market price. Receipts table has field "Purchase Price" and every receipt has a purchase price.
I would like the market price to update the field "good price" in receipts table based on date criteria, i.e. the receipt date falls in the respective market price date range, and if there is no market price, then update the field "good price" with "purchase price"
I used this in the update to "good price" field
IIf([Receipts]![Recd date] Between ([Market Price]![start date]) And ([Market Price]![end date]),[Market Price]![Market Price],[Receipts]![Purchase Price])
and I either get all records updated multiple times - I think it took a one-to many and showed all??
or it does not update the "purchase price"
Did I miss something? sorry, I dont know VBA or SQL, so I am looking for something easy, if possible.
Thanks for your help
Joanne
I have two tables, Purchase Order Receipts and Market Prices. I joined the two tables based on part number, with join property as "select all from receipts".
Market prices change every month, and not all parts have a market price. Receipts table has field "Purchase Price" and every receipt has a purchase price.
I would like the market price to update the field "good price" in receipts table based on date criteria, i.e. the receipt date falls in the respective market price date range, and if there is no market price, then update the field "good price" with "purchase price"
I used this in the update to "good price" field
IIf([Receipts]![Recd date] Between ([Market Price]![start date]) And ([Market Price]![end date]),[Market Price]![Market Price],[Receipts]![Purchase Price])
and I either get all records updated multiple times - I think it took a one-to many and showed all??
or it does not update the "purchase price"
Did I miss something? sorry, I dont know VBA or SQL, so I am looking for something easy, if possible.
Thanks for your help
Joanne