Click here to Skip to main content
15,884,801 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to connect to access database but in the line that I wrote to open the connection:
myConnection.Open()

it throw the exception:
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available.

the value of myConnection:
myConnection = New Data.OleDb.OleDbConnection(Path)

I tried to run a similar program with the same code and it worked

can someone help me and tell me what should I do?

thanks in advance
Posted
Updated 27-Aug-21 5:39am
v3

I found my problem-if you have a similar problem take a look on this page:
http://www.adopenstatic.com/faq/80040e21.asp
 
Share this answer
 
Check if connection is already Open, if Open Then close first then try to Open
 
Share this answer
 
Comments
Dave Kreskowiak 27-Aug-21 12:56pm    
That's not even close to the solution to the problem which was asked six years ago.

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