I have made a form with access database,,, I'd like to have a form that when I add another employee,, EmpID, EmpName, EmpDept, and click the save button it will automatically save as well on the database...I don't know the code to do this..I hope you will help me solve this one..
so far this is the code..
Public Class Form1 Private Sub Employee_InformationBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Employee_InformationBindingNavigatorSaveItem.Click Me.Validate() Me.Employee_InformationBindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.EmpInfoDataSet) 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 'EmpInfoDataSet.Employee_Information' table. You can move, or remove it, as needed. Me.Employee_InformationTableAdapter.Fill(Me.EmpInfoDataSet.Employee_Information) End Sub End Class