hi
i have this code for run any query on access
using (Conn = new OleDbConnection(Work_Connect)){
Conn.Open();
SQL = "select top 1 Code from MyTbl where ida = " + ida.Trim() + "";
dsView = new DataSet();
adp = new OleDbDataAdapter(SQL, Conn);
adp.Fill(dsView, "MyTbl ");
adp.Dispose();
}
but sometime i got this error:
Object reference not set to an instance of an object
or this error:
A Datatable named 'MyTbl' already belongs to this DataSet
i work on C# WinForm