Выдает ошибку OleDbException: отсутствует значение для одного или нескольких требуемых параметров
Выдает ошибку OleDbException: отсутствует значение для одного или нескольких требуемых параметров. Не понимаю в чем проблема, при вводе этого запроса в саму базу access все работает нормально.
string sqlQuery4 = "SELECT Full_name FROM Teaching_staff WHERE Id_step = 1;";
// Create the OleDbCommand object and set the SQL query and connection
OleDbCommand cmd4 = new OleDbCommand(sqlQuery4, conn);
// Create the OleDbDataReader object and execute the SQL query
OleDbDataReader reader4 = cmd4.ExecuteReader();
// Clear the list box and combo box
dataGridView8.Rows.Clear();
int rowIndex = 0;
// Loop through the results and add them to the list box and combo box
while (reader4.Read())
{
string name1 = reader4.GetString(0);
dataGridView8.Rows.Add();
dataGridView8.Rows[rowIndex].Cells["nirm_pps"].Value = name1;
rowIndex++;
}
// Close the data reader and the database connection
reader4.Close();