我在用户表单后面有以下代码
Private Sub add_button()
On Error Resume Next
If TextBox1 > TextBox9 Then
TextBox12 = "YES"
Else
TextBox12 = "No"
If TextBox8 > TextBox3 And TextBox8 < TextBox4 Then
TextBox11 = "YES"
Else
TextBox11 = "no"
If TextBox12 = "NO" Then
TextBox10 = "NO"
ElseIf TextBox11 = "NO" Then
TextBox10 = "NO"
Else
TextBox10 = "YES"
End If
End If
End If
End Sub
上面的代码不起作用:请就可能的错误提出建议。