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
Loading
Bechir BejaouiPosted Jan 28, 2009, 2:13 PM
If you are newbie in .Net before using any tip or object first check the whether the correspondant namespace is present or not for two raisons
First you will not loose time
Second you get the objects and their correspondants namespaces in your mind so event you use a simple block note to develop and entire assembly you won't be lost at all because every think is in your head.
radu popescuPosted Jan 28, 2009, 1:55 AM
Bechir BejaouiPosted Jan 27, 2009, 3:46 PM
try OleDbDataAdapter without 1 instead