If IsNull(Me.cCusCode) Then
errMsg = errMsg + "客户编码不能为空" & vbCrLf
End If
If IsNull(Me.cCusName) Then
errMsg = errMsg + "客户名称不能为空" & vbCrLf
End If
If errMsg <> "" Then
MsgBox "错误信息:" & vbCrLf & "------------------------------------------" & vbCrLf & errMsg & "------------------------------------------", vbCritical + vbOKOnly, "提示"
Exit Sub
End If
On Err GoTo Err
'----
Dim BMS_cCusCode As String
Dim BMS_cCusName As String
Dim BMS_cCusAbbName As String
'----
'----
If Not IsNull(Me.cCusCode) Then BMS_cCusCode = Me.cCusCode
If Not IsNull(Me.cCusName) Then BMS_cCusName = Me.cCusName
If Not IsNull(Me.cCusAbbName) Then BMS_cCusAbbName = Me.cCusAbbName
'----
'----
Dim prmCustomer As ADODB.Parameter
Dim cmdCustomer As ADODB.Command
Dim rstCustomer As ADODB.Recordset
Dim conn As ADODB.Connection
Dim connStr As New connStr
Set cmdCustomer = New ADODB.Command
cmdCustomer.CommandText = "BMS_SP_CustomerInfo_Add"
cmdCustomer.CommandType = adCmdStoredProc
'----