Public Function ExecuteNoQuery() As Boolean
On Error GoTo Exception
With mADODBCommand
.Prepared = True
.Execute
End With
ExecuteNoQuery = True
Exit Function
Exception:
If Err.Number = -2147217887 Or Err.Number = -2147217873 Then
MsgBox "数据操作出现重复!请再次核实!", vbCritical, "设备管理"
Else
ShowError Err, "ExecuteNoQuery()"
End If
ExecuteNoQuery = False
End Function