VB的if语句的问题

问题描述:

VB的if语句的问题
Private Sub Command1_Click()
If Text1 = "111" Then
Form3.Show
End If
Else
If Text1 = "" Then
MsgBox "错误!"6,"系统错误"
End If
End Sub
怎么改
当Text1=111时 Form3.show
当Text1不是111时 MsgBox "错误",6,"系统错误"
怎么写?

Private Sub Command1_Click()'先判断为空时则出错If Text1 = "" Then MsgBox "错误!"6,"系统错误"exit subend ifIf Text1 = "111" Then Form3.ShowEnd Sub 或者Private Sub Command1_Click()If Text1 = "111" Then ...当Text1=111时 Form3.show当Text1不是111时 MsgBox "错误", 6, "系统错误"怎么写?第二段,已经给你准备好了