a database error :“No value given for one or more required parameters.”

后端 未结 2 1673
清酒与你
清酒与你 2021-01-25 18:40

I have a data grid that I should insert its columns values to an access database but I have problem with command.ExecuteNonQuery();

My project is not finish

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-25 19:37

    It means a column is not found in the table, (so Access thinks it's a parameter). Usually you misspelled something. It seems likely "restOfMonyy" should be "restOfMoney". If not, debug the application and get the exact string built and make a query with it and see what happens.

提交回复
热议问题