private void button1_Click(object sender, EventArgs e)
{
int kod = Convert.ToInt32(textBox37.Text);
string surname = textBox1.Text;
string name = textBox2.Text;
string middle_names = textBox3.Text;
string initials = textBox4.Text;
DateTime birthday = DateTime.Parse(textBox5.Text);
int year_of_birth = Convert.ToInt32(textBox6.Text);
int age = Convert.ToInt32(textBox7.Text);
string query = "INSERT INTO worker ([Код], Фамилия, Имя, Отчества, [Фамилия и инициалы], [День рождения], [Год рождения], [Возраст]) VALUES (" + kod + ", '" + surname + "', '" + name + "', '" + middle_names + "', '" + initials + "', '" + birthday + "', '" + year_of_birth + "', '" + age + "')";
OleDbCommand command = new OleDbCommand(query, myConnection);
command.ExecuteNonQuery();
MessageBox.Show("Сотрудник добавлен");
}