Hello
I am currently learning VB.net and I am using the tutorial on VB
express. One of the tutorials is about adding a database and then
creating a visual input or amendment screen but event though I have
followed the tutorial and even redone all the steps I cannot get the
input to save into the data below is the code that currently exists
against the form.
Public Class Form1
Private Sub AddressBookBindingNavigatorSaveItem_Click(ByVal sender
As System.Object, ByVal e As System.EventArgs) Handles
AddressBookBindingNavigatorSaveItem.Click
Me.Validate()
Me.AddressBookBindingSource.EndEdit()
Me.AddressBookTableAdapter.Update(Me.Database1Data Set.AddressBook)
End Sub
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Me.AddressBookBindingSource.EndEdit()
Me.AddressBookTableAdapter.Update(Me.Database1Data Set.AddressBook)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the
'Database1DataSet.AddressBook' table. You can move, or remove it, as
needed.
Me.AddressBookTableAdapter.Fill(Me.Database1DataSe t.AddressBook)
End Sub
End Class