Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I cure the Unhandled Exception Error Issue

Status
Not open for further replies.

vafishing

Programmer
Jul 18, 2001
35
US
I have a button on a dataform that when pushed is designed to load some data from an sql database. Here is the code:

Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
objcustomer.Clear()
Try
SqlDataAdapter1.Fill(objcustomer)
Catch ex As Exception
MsgBox(ex.ToString)
Stop
End Try


End Sub

In reading the error message, the problem appears to be the statement SqlDataAdapter1.Fill(objcustomer) Is there something I did wrong in generating the dataset? Is that what causes these unhandled errors. How do I cure the issue so I can load the data. The debug section does not tell me much. Is there a more decriptive window in vb net that tells me what this problem is?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top