vb数据库ADODC+DATAGRID
PrivateSubForm_Load()DimstrAsStringstr="select*from交易信息"'db.ConnectionString="Provide...
Private Sub Form_Load()
Dim str As String
str = "select * from 交易信息"
'db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\test.mdb"
Adodc1.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" + App.Path + "\test.mdb"
Adodc1.RecordSource = str
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
DataGrid1.Refresh
End Sub
显示“键列信息不足或不正确,更新影响到多行”会急死~~
datagrid的allow全选了,可以修改,添加,删除,我每次手动修改就出这个错,说明原因啊? 展开
Dim str As String
str = "select * from 交易信息"
'db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\test.mdb"
Adodc1.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" + App.Path + "\test.mdb"
Adodc1.RecordSource = str
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
DataGrid1.Refresh
End Sub
显示“键列信息不足或不正确,更新影响到多行”会急死~~
datagrid的allow全选了,可以修改,添加,删除,我每次手动修改就出这个错,说明原因啊? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询