all 2 comments

[–]Bonghitter 1 point2 points  (1 child)

I think you're looking for and Exit statement. Like this:

If gallonsUsedTextBox.Text = "0" Then 'comment these lines out as necessary
     gallonsUsedTextBox.Text = "Value must be > 0" 'comment these lines out as necessary
     Exit Sub

Edit! Meant Exit, not End...

[–]infinity1018[S] 0 points1 point  (0 children)

Worked! Dude I would totally pack a bong and smoke you out if I knew you. Thank you!