Hi,
Looking for some help with a pretty basic SQL problem. Rather than use DMax with a query, i'd prefer to open a recordset and do it all in one step. If Access allowed query string in the DMax function then my issue would also be solved.
Table:
I need the max version where the ID equals a variable.Code:ID Version -------------------------- A60 5 A100 1 A100 2 A102 1 A300 1 A300 2 A60 1 A60 2 A60 3
For example, if ID = A100, query should return record where version = 2 (max)
If ID = A60, query should return record where version = 5
Thanks for the help!