Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16044

MS Access Database Engine 2010 problem

$
0
0
I have developed a few applications over the years that I use frequently. These applications use MS Access as the back-end database and the MS Access Database Engine 2020.

Beginning sometime in the last few days, I have been getting a System.Data.OleDb.OleDbException error from these applications. I have not made any changes to any of them, so something else was going on :(.

Name:  2021-07-13_16-55-28.jpg
Views: 24
Size:  33.0 KB

I began investigating by single-stepping through my code, setting breakpoints, etc. These errors were occuring when the DataAdapter.Update method was getting called. For example:

Code:

iActions += daActionItems.Update(dsMain.Tables("ActionItems"))
Sometimes the error would get captured via a Try-Catch block, but othertimes the Try-Catch block would not capture the error (and the application would crash/exit). This really stumped me.

Since these errors were happening across all my applications and I hadn't made any changes to them recently, I thought the issue was probably due to something else that would be common to all my applications.

I use the Windows 10 Pro OS on my PC and the Microsoft Update function makes updates on a daily basis. Last Tuesday and again today there was a "2021-07 Cumulative Update for Windows 10 Version 21H1 for x64-based Systems...". I also had recently updated the BIOS on my PC.

I was stumped as to where to begin troubleshooting this problem.

I updated my VS 2019 Community to version 16.10.3 from version 16.9.4 but that didn't fix the problem. My VS 2019 is targeted for the Microsoft .NET Framework 4.8.04084, and that looked to be the most current version (nothing to update).

On a whim, I did a "Repair" of the MS Access Database Engine 2020 via the Control Panel and BINGO...that fixed the problem!

I have no idea why this issue began. Does anybody have any ideas...?
Attached Images
 

Viewing all articles
Browse latest Browse all 16044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>