Hi, i am having a problem on my program

Private Sub Command1_Click()
If text1.Text = "" Then
MsgBox ("You have no content on your 1st Textbox")
Else
End If
.
.
.
Bunch of codes that will result to an error if there is no value for text1.text


When the user clicks the command button and the textbox is blank, there will be a msgbox popping out.

But how can i make the program go back to the form1 without continuing the program since there would be errors after the first if statement