CODE
Imports System.Data.OleDb
Imports System.Windows.Forms
Public Class ExpDBX
Private Sub ExpDBBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpDBBindingNavigatorSaveItem.Click
If Me.Validate Then
Me.ExpDBBindingSource.EndEdit()
Me.ExpDBTableAdapter.Update(Me.ExpDBXDataSet.expDB)
Else
MessageBox.Show(Me, "Validation errors occurred.", "Save", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End If
End Sub
Private Sub ExpDBX_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'ExpDBXDataSet.expDB' table. You can move, or remove it, as needed.
Me.ExpDBTableAdapter.Fill(Me.ExpDBXDataSet.expDB)
End Sub
End Class
I have tried to make a details form in order to bind textboxes to the fields in my database. The above code is generated.
I cannot add new values to the database and save them when I run the app. What the heck am I missing?