蓝主,求助如果多值中含有 中国,要删除,下面代码怎么修改
If e.Form.Controls("RadioButton1").Checked = True Then
If not ("," & Tables("表A").current("第一列") & "," Like "*," & forms("窗口1").controls("RadioButton1").text & ",*") AndAlso not ("," & Tables("表A").current("第一列") & "," Like "*中国*") Then
Tables("表A").current("第一列") = Tables("表A").current("第一列") & ",中国"
End If
End If
If e.Form.Controls("RadioButton1").Checked = False Then
If not ("," & Tables("表A").current("第一列") & "," Like "*," & forms("窗口1").controls("RadioButton1").text & ",*") AndAlso ("," & Tables("表A").current("第一列") & "," Like "*中国*") Then
Tables("表A").current("第一列").Value = Tables("表A").current("第一列").Value.trim("中国") '不懂怎么删除已存在的 中国
End If