Access db connection to C# desktop app

Closed
amna - May 6, 2010 at 06:47 AM
 Jordan - Jul 22, 2010 at 08:45 AM
i have tried
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.JET.OLEDB.4.0;" + @"data source=Db.mdb");
conn.Open();
OleDbDataAdapter adapter = new OleDbDataAdapter();
OleDbCommand command = new OleDbCommand("SELECT * from temp", conn);


but it gives an error on conn, as if the object has not been created...plzzz can anyone help me..thanx in advance

Related:

1 response

Try compiling your application as x86 instead of Any CPU or x64. There is no Jet 4.0 for 64 bit applications.
0