the following code doesn't work for some reason- when i run it i get a popup saying:
"Compile error: Block If without End If"
i am trying to get the sub to exit if all fields have not been filled properly. something to the effect of undoing the submit click i suppose. thanks
--------------
Private Sub Command1_Click()
For i = 1 To 7
If promptArray(i) = "" Then
End Sub '<-----problem with this line
End If
Next i
End Sub
"Compile error: Block If without End If"
i am trying to get the sub to exit if all fields have not been filled properly. something to the effect of undoing the submit click i suppose. thanks
--------------
Private Sub Command1_Click()
For i = 1 To 7
If promptArray(i) = "" Then
End Sub '<-----problem with this line
End If
Next i
End Sub