Многозначное поле. Поле attachment MS Access
Имеется основная форма с dgv и вторая форма добавления записи в таблицу. Проблема заключается в том, что при добавлении картинки вылезает ошибка "An INSERT INTO query cannot contain a multi-valued field".
private void AddBtn2_Click(object sender, EventArgs e)
{
Form1 main = this.Owner as Form1;
if (main != null)
{
DataRow nRow = main.personaFDataSet.Tables[6].NewRow();
int rc = main.dataGridView1.RowCount + 1;
nRow[0] = rc;
nRow[1] = tbFIO.Text;
nRow[2] = tbDateBirth.Text;
nRow[3] = tbAge.Text;
nRow[4] = tbNation.Text;
nRow[5] = cbGender.Text;
nRow[6] = cbMarital.Text;
nRow[7] = tbDuty.Text;
nRow[8] = tbCity.Text;
nRow[9] = tbAdress1.Text;
nRow[10] = cbStatus.Text;
nRow[11] = GetImagesBytes(pictureBox1.Image);
main.personaFDataSet.Tables[6].Rows.Add(nRow);
main.соискателиTableAdapter.Update(main.personaFDataSet.Соискатели); //Здесь ошибка
main.personaFDataSet.Tables[6].AcceptChanges();
main.dataGridView1.Refresh();
tbFIO.Text = "";
tbDateBirth.Text = "";
tbAge.Text = "";
tbNation.Text = "";
cbGender.Text = "";
cbMarital.Text = "";
tbDuty.Text = "";
tbCity.Text = "";
tbAdress1.Text = "";
cbStatus.Text = "";
pictureBox1.Image = null;
}
}