Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » re-connecting to a database problem....
Closed Thread
Old 04-12-2005, 09:16 AM   #1 (permalink)
CntdwnToExtn's Avatar
 
Monster Techie

Join Date: Jan 2005

Location: Parents Basement

Posts: 1,339

CntdwnToExtn is on a distinguished road

Send a message via MSN to CntdwnToExtn
Default re-connecting to a database problem....

okay.
so, it's 9:08am and i have to present my database program in VB to my professor at 10:00am.

I HAVN'T CHANGED THESE LINES AT ALL.
ZERO, ZILCH, NADDA, ZIPPO!

i've reconnected to the database, thinkin' it just couldn't find it...but..that didn't happen.

this is the error:

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

and this is my code:

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

daCars.Fill(DsCars1)
daTrucks.Fill(DsCars1)


currCars = Me.BindingContext(DsCars1, "Cars")
currTrucks = Me.BindingContext(DsCars1, "Trucks")

End Sub

i comment out the first line and it happens with the second line, i comment out both, the program will run, but my database, ofcourse, won't show up....
__________________
CntdwnToExtn is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On