PDA

View Full Version : Class not registered error



chrismurray217
2018-11-13, 04:15 PM
We've recently been upgraded to Windows 10, and Microsoft 2016, and i'm getting a "Class not registered" error when it gets to the "Catalog.Create dbConnectStr" section of the code.

Does anyone know what needs to be updated for this to work in this new environment?

Thanks

chrismurray217
2018-11-13, 04:38 PM
We've recently been upgraded to Windows 10, and Microsoft 2016, and i'm getting a "Class not registered" error when it gets to the "Catalog.Create dbConnectStr" section of the code.

Does anyone know what needs to be updated for this to work in this new environment?

Thanks

Update:

I changed the Connection String:


dbConnectStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbPath & ";"

to:


dbConnectStr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & dbPath & ";"

...and it seems to be working.

Thanks,
Chris