I created a form system that takes in the staff personal data (with the purpose to create an account) the data is correctly taken and entered into the dataset (dataSet2).The line below was what I believed was the correct set of code to update the database (Database1).The data correctly enters the dataset without an issue but I do not see any data entered into the database at all, there are no error codes output or provided. All help is appreciated.
namespace COMP_SCI_2
{
public partial class staff_createacc : Form
{
public staff_createacc()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string[]DATAINPUT = { IDBOX.Text ,TITLEBOX.Text,FORENAMEBOX.Text,SURNAMEBOX.Text,DATEBOX.Text,STREETBOX.Text,TOWNBOX.Text,POSTCODEBOX.Text,PHONEBOX.Text,EMAILBOX.Text,POSITIONBOX.Text,PASSWORDBOX.Text };
dataSet2.STAFF.Rows.Add (DATAINPUT);
this.sTAFFTableAdapter.Update(this.dataSet2);
}
