How many records returned to the rs? ID usually suggests there would be only one. If so, declaring and creating a recordset for one record is overkill - especially since the rs only contains one field. I'd use DLookup, and I would refrain from using reserved words for field names - especially when they are function names (like "Year"). If you were being forced to use such a word, you must enclose them in brackets ( e.g. [Year]). I cannot see how that sql (in post 1) would ever run without generating an error.
Last edited by Micron; 12-10-2021 at 03:44 PM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.