Hello segue,
Are u sure that u are using the right connection string? U can check it there
http://connectionstrings.com/
I recommend u to use the following OLEDB sample how to work with Access DB
in C#
http://msdn2.microsoft.com/en-us/lib...52(VS.71).aspx
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
sI'd greatly appreciate suggestions on a better method for cursing
sthrough access database tables or why I'm getting the following error
sat oleConnection.Open().
s>
sDo I need an odbc syntax instead of oledb?
sMuch thanks.
sSystem.Data.OleDb.OleDbException: The database has been placed in a
sstate on machine 'IO' that prevents it from being opened or locked.
s>
sDim olestring As String =
s"Provider=Microsoft.Jet.OLEDB.4.0;Data
sSource=c:\db\db2000_1_client.mdb"
sDim qstring As String = "SELECT * FROM " & aTable & ""
sTry
s>
soleConnection = New OleDbConnection(olestring)
s'oleDataAdapter = New oledataadapter
soleConnection.Open()