I’m sure the answer to this is easy, but like all problems when you don’t know the answer…..
OK. Two tables: tblOrders, primary key = .Order_ID, and tblOrderNotes, primary key = .Note_ID.
Tables linked by tblOrders.Order_ID —— tblOrderNotes.Order_ID
I’m sure you’ve gathered by now that one table holds all the orders, and the other allows users to add multiple notes regarding the progress of any/each order.
I have a form driven by a query that displays the order. I want to display the latest note for that order. The notes table has a date/time stamp field, but i cant work out how to write the query. I am sure it involves an aggregate function along the way, but half of me is thinking i’m going to have to have two queries, one to work out which is the most recent note for any given order number, and then use that as a recordsouce for the second query behind the form….
All comments appreciated…