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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NullPointer Exception at Update DataTable Call

Status
Not open for further replies.

fsteeman

Programmer
Jul 17, 2002
103
DK
Hello all,

I am writing a data application and let most of the database connection work be done by wizards. This resulted in a not very translucent pile of code that I am trying to work my way through. One problem is that the changes supposedly made to the contents of the database (while debugging) are not there when I open the database outside VB Express. Is this because I am still debugging and do I need to compile before I can get to update my database?

Anyways, I tried a couple of things myself, for example by changing:

[navy]Me.MasterTableAdapter.Update()[/navy]

to:

[navy]Me.MasterTableAdapter.Update(Me.GMDB2DataSet.Master.GetChanges())[/navy]

But this just results in a NullPointer Exception at:

[navy]
Public Overloads Overridable Function Update(ByVal dataTable As GMDB2DataSet.MasterDataTable) As Integer
Return Me.Adapter.Update(dataTable)
End Function
[/navy]
Any help/advice is appreciated...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top