vb 提示 未找到方法或数据成员!

[复制链接]
查看11 | 回复1 | 2011-6-4 13:49:50 | 显示全部楼层 |阅读模式
Private Sub Command8_Click(Index As Integer)
'修改
On Error Resume Next
If Command8.Caption = "修改" Then
Command8.Caption = "确认"
Adodc1.Recordset.Edit
DataGrid1.SetFocus
Else
Command8.Caption = "修改"
Adodc1.Recordset.Update
End If
Else
Command8.Caption = "修改"
Adodc1.Recordset.Update

End If
End Sub

回复

使用道具 举报

千问 | 2011-6-4 13:49:50 | 显示全部楼层
Ado控件没有Edit这个方法,与Dao控件不同如:将 学生信息表 里学号为001的学生年龄修改为18岁Dim mysql as stringmysql = "update 学生信息表 set 年龄 = 18 where 学号 = '001'"myconn.execute mysqladodc1.refresh...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行