string connectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Path\To\Your\Database.accdb;";
Microsoft does not officially support installing both 32-bit and 64-bit versions of the provider on the same machine. However, you can achieve this using a command-line workaround. Quick Fix: Passive Installation download microsoft.ace.oledb.12.0 provider for both 64-bit
using (OleDbConnection connection = new OleDbConnection(connectionString)) string connectionString = @"Provider=Microsoft