3
Answers

OleDbdataAdapter issue

radu popescu

radu popescu

15y
3k
1
Hello all,

I have the following code for revealing some data form my MS Access data base:

OleDbDataAdapter1 da = new OleDbDataAdapter1("SELECT * FROM [user]", @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Documents and Settings\radhoo\desktop\test.mdb;Persist Security Info=False");
            DataSet ds = new DataSet();
            da.Fill(ds, "[nume]");
            dataGrid1.DataSource = ds.Tables["[nume]"].DefaultView;

The problem is that I get this message : "the type namespace name 'OleDbDataAdapter1' could not be found (you are missing a using directive or an essembly reference?)".

*also I have draged and droped a data grid on the form.

Thanks
Answers (3)