hi..

i have

Private sub something_click()

If Trim(txtCustomerName.Text) = "" Then
msgbox "Customer name required.", vbCritical, "Required"
***
End If

^other code here^
^other code here^
^other code here^
^other code here^
^other code here^

End Sub

where the *** are i want to stop executing the code the ^other code here^
...like just break out of the subroutine, how do i do that? isn't there a break or something?

sorry, i'm used to java, which has a break statement, anything equivalent in VB?

--770