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...
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...