UPDATE tblTransaction SET tblTransaction.UnloadingTime = Now(), tblTransaction.Unloadedby = [currentuser]
WHERE (((tblTransaction.BottleFK)=[forms]![frmload].[bottleID]));
I am running an update query based on the form's bottleID field but it update all the record of that bottleID. That bottleFK has many instance in table transaction and I want to update only last entered record. To track the event, I have TransactionID and loading time in tblTransaction.
I assume that I should have subquery in this query, so first I get matched records based on bottleID and then find the latest record.
I have never written a subquery, so I could not make this happen and lot of struggle.
Please advise.
best regards.