VB高手帮个忙,以下代码是取消键下的代码,但是运行按取消键里面的内容不能清空,怎改?在下感激不尽
PrivateSubImgcancel_Click()OnErrorResumeNextAdodc1.Recordset.CancelUpdateAdodc1.Refre...
Private Sub Imgcancel_Click()
On Error Resume Next
Adodc1.Recordset.CancelUpdate
Adodc1.Refresh
Lockctl
Imgok.Enabled = False: Imgcancel.Enabled = False
Imgadd.Enabled = True: Imgupdate.Enabled = True
Imgdelete.Enabled = True: Adodc1.Enabled = True
ImgT.Enabled = False
End Sub
修改上面的,能是框里的内容清空,我是新手,不太清楚,请指导!! 展开
On Error Resume Next
Adodc1.Recordset.CancelUpdate
Adodc1.Refresh
Lockctl
Imgok.Enabled = False: Imgcancel.Enabled = False
Imgadd.Enabled = True: Imgupdate.Enabled = True
Imgdelete.Enabled = True: Adodc1.Enabled = True
ImgT.Enabled = False
End Sub
修改上面的,能是框里的内容清空,我是新手,不太清楚,请指导!! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询