Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information

前端 未结 1 371
自闭症患者
自闭症患者 2021-01-18 03:07

I want update/edit data in database (MS Access) by using DataGridView in VB.net I used this code:

       Dim sadapter As OleDb.OleDbDataAdapter
       Dim sd         


        
1条回答
  •  执笔经年
    2021-01-18 03:53

    If you table doesn't have a primary key, you need to set one.

    0 讨论(0)
提交回复
热议问题