An error occurred while connecting winForm + access DATA. Microsoft. Jet. OLEDB.12.0, microsoft. jet. oledb, was not registered on the local computer.
The Microsoft. Jet. OLEDB.12.0 provider is not registered on the local computer.
1. database connection string:
2007 database connection string:
ConStr = "Provider = Microsoft. Jet. OLEDB.12.0; Data Source = E: \ spendingVoucher. accdb; Persist Security Info = False ";
2. However, an exception occurred: the Microsoft. Jet. OLEDB.12.0 provider was not registered on the local computer.
If accessdatabaseengine.exe is installed and restarted on the slave node, an error is returned.
Microsoft. ACE. OLEDB.12.0 is used to check the Internet and replace Microsoft. Jet. OLEDB.12.0,
I tried and succeeded! But I don't understand.
The correct connection string is:
ConStr = "Provider = Microsoft. ACE. OLEDB.12.0; Data Source = E: \ spendingVoucher. accdb; Persist Security Info = False ";