TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
radu popescu
NA
6
0
OleDbdataAdapter issue
Jan 27 2009 2:51 PM
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
Reply
Answers (
3
)
formating
Time stamp change for Access database