<p>发现笔误:Private Sub CommandButton1_Click()<br/> If TextBox1.Value = "雨中漫步" And TextBox2.Value = "hhzjxss" And TextBox3.Value = Label2.Caption Then<br/>' If TextBox1.Value = "1" And TextBox2.Value = "1" And TextBox3.Value = 1 Then<br/>' Unload UserForm1<br/> Me.Hide<br/> MsgBox "欢迎使用!"<br/> Application.Visible = True<br/> ElseIf TextBox1.Value <> "雨中漫步" Then<br/> MsgBox "用户名错误!"<br/> ElseIf TextBox1.Value <> "hhzjxss" Then <font color="#ff0066">'此处TextBox1改为TextBox2</font><br/> MsgBox "密码错误!"<br/> Else '此处要改为:<font color="#ff0033">ElseIf TextBox3.Value <> Label2.Caption Then</font> ,否则验证码错误也提示密码错误! </p><p> MsgBox "验证码错误!"<br/> End If<br/>End Sub<br/></p>
[此贴子已经被作者于2007-11-27 19:42:11编辑过] |