I'm working on an application using VB .Net 2005 and MS Access 2003 for the
database. The table I'm trying to update has a key field. When I click the
Save Button the update seems to work in the dataset, but the database is not
updated. The code I'm using for the btnSave is:
Private Sub btnSave_Click(B yVal sender As System.Object, _
ByVal e As System.EventArg s) Handles btnSave.Click
'saves adds and edits to database
If bChange = False Then
MsgBox("Nothing To Save", MsgBoxStyle.OkO nly, "Test!!!!")
Else
Me.Validate()
Me.TblCompanyBi ndingSource.End Edit()
Me.TblCompanyTa bleAdapter.Upda te(Me.DsCompDat a.tblCoompany)
bChange = False
End If
Me.DisplayPosit ion() 'reset record location
Me.setMaintence Buttons(True)
End Sub
Any suggestiona dn help is greatly appreciated!!!!
--
Tony
database. The table I'm trying to update has a key field. When I click the
Save Button the update seems to work in the dataset, but the database is not
updated. The code I'm using for the btnSave is:
Private Sub btnSave_Click(B yVal sender As System.Object, _
ByVal e As System.EventArg s) Handles btnSave.Click
'saves adds and edits to database
If bChange = False Then
MsgBox("Nothing To Save", MsgBoxStyle.OkO nly, "Test!!!!")
Else
Me.Validate()
Me.TblCompanyBi ndingSource.End Edit()
Me.TblCompanyTa bleAdapter.Upda te(Me.DsCompDat a.tblCoompany)
bChange = False
End If
Me.DisplayPosit ion() 'reset record location
Me.setMaintence Buttons(True)
End Sub
Any suggestiona dn help is greatly appreciated!!!!
--
Tony
Comment