IIRC, DAO is now part of the Microsoft Office 16.0 Access database engine Object Library, which I thought should be selected by default. Check to see that it is referenced. I also recall that you cannot reference DAO libraries in versions 2016 and up if that one is already selected - perhaps even a bit earlier.
Last edited by Micron; 05-10-2021 at 01:25 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.