|
请各位朋友指导如何解决该问题!即执行如下代码时弹出“运行时错误3622,当访问一个带有IDENTITY列的SQL表时,必须使用opendatabase的dbseechanges选项。”
- Private Sub Command4_Click()
- If IsNull(Me.对象ID.Value) = True Then
- MsgBox ("“对象ID不能为空,请先确定待删除的对象ID!”"), vbExclamation + vbOKOnly, "系统提示"
- Me.对象ID.SetFocus
- Else
- If MsgBox("您确定要删除ID为:'" & Me.对象ID.Value & "'的出入场记录吗?", vbYesNo, "系统提示") = vbYes Then
- CurrentDb().Execute "delete from dbo_vipinout where dbo_vipinout.id in( " & Me.对象ID.Value & ")"
- MsgBox ("已经删除'" & Me.对象ID.Value & "'的出入场记录!"), vbInformation + vbOKOnly, "系统提示"
- Call Command5_Click
- Else
- Call Command5_Click
- Me.对象ID.SetFocus
- End If
-
- End If
- End Sub
- Private Sub Command5_Click()
- Me.对象ID.Value = Null
- Me.出入场异常查看子窗体.Requery
- End Sub
复制代码 |
|