How do I update excel file with oleDbDataAdapter.Update(myDataSet)

白昼怎懂夜的黑 提交于 2019-12-07 02:35:27

You haven't set the UpdateCommand property of clientsAdapter.

You've created a OleDbCommand called "updateCmd", but then you've set the InsertCommand property to it:

clientsAdapter.InsertCommand = updateCmd;

I suspect you wanted:

clientsAdapter.UpdateCommand = updateCmd;

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!