Mohammad Ishaq

Mohammad Ishaq

  • NA
  • 55
  • 18.9k

Help Required for my code

Jun 14 2014 12:41 PM
I working on a project and i am using
 
VB 2008
MS Access 2007 for Database
 
I have a table in Ms access . And datagridview table to put data in ms access. When i put data in the datagridview table.it do not save in the table.Please guide my about my code.Please give me guide line for vb and ms access not for c# or other data base.


Public Class Form1       Private Sub EmpDataBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmpDataBindingNavigatorSaveItem.Click         Me.Validate()         Me.EmpDataBindingSource.EndEdit()         Me.TableAdapterManager.UpdateAll(Me.EmplTableDataSet)       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 'EmplTableDataSet.EmpData' table. You can move, or remove it, as needed.         Me.EmpDataTableAdapter.Fill(Me.EmplTableDataSet.EmpData)         EmpDataBindingNavigator.Hide()       End Sub       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click         EmpDataBindingNavigatorSaveItem.PerformClick()       End Sub       Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click         BindingNavigatorDeleteItem.PerformClick()       End Sub End Class


Answers (1)