msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HELP loading to data grid from access db

 
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE
Author Message
uwstudentch



Joined: 04 Oct 2007
Posts: 1

PostPosted: Mon May 23, 2005 10:33 pm    Post subject: HELP loading to data grid from access db Reply with quote

Hi everyone,

(Visual Basic) I am having a problem loading data into data grid on my form
in Visual Studio from an Access db. Here is the line of code:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
DsStudent1.Clear()
OleDbDataAdapter1.Fill(DsStudent1)

When I try to run it I get:

An unhandled exception of type 'system.Data.OleDb.OleDbException
occured in system.data.dll

That last line of code is highlighted in debug mode

I've got my connection, adapter, and dataset.i have tested my connection and
it works. I have set the data source and data members correctly to my ds.
When I go to Preview Data, then click fill data set, it works fine. Just
won't load to form. Tried using a button instead but still nothing. I am
pretty positive that my steps to connect are right. Using Jet 4

Could it have something to do with the MSDE? I can't so much locate it on my
machine. I thought I had it but after looking, couldn't find it, so I
downloaded it from microsoft. But still no luck. Then had to enable printer
and file sharing. Looked under services in admin tools for an instance of a
SQL server but don't even have one? What? I bet it is something easy, but I
have spent sooooo many hours trying to figure it out

Quick replies are so very much appreciated. Thanks sooooooooooo much

~C

Archived from group: microsoft>public>vb>ole
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> OLE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group