E
E
Electronic882015-01-03 16:49:56
Database
Electronic88, 2015-01-03 16:49:56

How to save data in an Access table through VS C# Forms?

after I enter data into the fields and click to save the data is not written to the table
ab280db4704f4974ac8fc19858266d48.jpg
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class printContract : Form
{
public printContract()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: this line of code allows you to load data into the table "dB_1DataSet.Table1". If necessary, it can be moved or removed.
this.table1TableAdapter.Fill(this.dB_1DataSet.Table1);
}
private void table1BindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
this.Validate();
this.table1BindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.dB_1DataSet);
}
private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e)
{
}
}
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question