Click here to Skip to main content
15,888,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have a long code that takes research data from an older Microsoft access database and runs a research program that takes the data and spits out some calculations and such. I ran it through a Microsoft access .mdb file and I recently upgraded to a newer access database .accdb file. How can I update my data sources in visual studio so that I do not receive a con.Open error and it will go to a new .accdb target?

What I have tried:

I tried shooting the program to the new access database but an error always comes back. I have tried editing it and reconfiguring it but I am missing something. Any feedback would be appreciated.
Posted
Updated 29-Oct-18 12:37pm
Comments
MadMyche 29-Oct-18 17:10pm    
Change the web.config file

1 solution

At a guess - and that's all it can be with the lack of information you have given us - you used to use JET which doesn't support ACCDB databases. You need to switch the connection string (and installed db engine) to ACE and install the right version (32 or 64 bit) for your app.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900