我不断收到参数名称错误?在底部我附上了一张图片来帮助解释这个问题。
private void loadProgress(string jobNumber)
{
productioninfo.Open();
OleDbCommand _contractReview = new OleDbCommand ("SELECT [Contract Review] FROM [Main$] WHERE [Job No] = '@Job No'", productioninfo);
_contractReview.Parameters.Add("@Job No", OleDbType.Char);
_contractReview.Parameters["Job No"].Value = jobNumber;
OleDbDataReader dr = _contractReview.ExecuteReader();
while (dr.Read())
{
}
dr.Close();
}