for some reason my code is resulting to syntax error INSERT INTO and its pointing to executenonquery line
try
{
OleDbCommand cmd = new OleDbCommand(String.Concat("INSERT INTO CHILDREN2 WHERE (Emp_ID , Child_Name, Age ) VALUES ('", Convert.ToInt32(CaptionText.ToString()), "','", txtName.Text, "','", txtAge, ")"), clsData.con);
clsData.con.Close();
clsData.con.Open();
cmd.ExecuteNonQuery();
cmd.Dispose();
clsData.con.Close();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}