Are you trying to connect the VS2022 to the Access using the ACE? Please note that the VS2017 is 32-bit and VS2022 is 64-bit. The ACE has 32-bit and 64-bit versions which cannot co-exist in a PC. Your ACE is 32-bit if you could use it with the VS2017. Probably that's why.
vs 2017 works great but vs2022 gives 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
Jay O'Brien
71
Reputation points
My VS 2017 apps work fine in debug mode. However, when I try it in VS2022 I receive 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. My desktop programs work in VS2022, just not my asp.net programs