The double backslash?
Trouble with connecting Access DB
The C# code throws this error for this connection string: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=W:\SAP_POPfcst_2022-02-16.mdb
However, I setup the same connection using the wizard and the test connection is fine.
Any thoughts why the wizard find the provider but code does not?
Regards,
Lance
2 answers
Sort by: Most helpful
-
-
Lance James 371 Reputation points
2022-02-17T23:20:12.087+00:00 In the Project Tab, Properties, this window opens. Deselect Prefer 32-bit and set Platform target = x64. Early in this thread JackJJun-MSFT suggested setting the platform to X64 but did not elaborate on how to do what he suggested. This is the solution. Thanks Jack. I found it.
Good luck all,
Lance