cmd.CommandText = " 选择 Count(*) From {organList} Where organName = '" & organName & "'"
If cmd.ExecuteScalar > 0 Then
Messagebox.show("更改单位失败,该单位已经存在!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
e.Form.Controls("organName").Value = OldOrganName
With Tables("organList")
.Current("organName")=OldOrganName
End With
Return
End If
Tables("organList") .Current。save
cmd.CommandText = "选择 Count(*) From {organList} Where organId= '" & organId & "'"
If cmd.ExecuteScalar > 0 Then
Messagebox.show("更改单位失败,该金融机构编码已经存在!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Return
End If