I want to stop the application if i have an error
Like this:
On a button
If textbox1 > 1 then
X = 1
Else Msgbox ("bla")
So if textbox isnt bigger than 1 the Msgbox shows and next part of my code starts.
But i want it to stop (not close the form) and start again when the user hits the button again to check if textbox is bigger than one this time
How do i do that?
Like this:
On a button
If textbox1 > 1 then
X = 1
Else Msgbox ("bla")
So if textbox isnt bigger than 1 the Msgbox shows and next part of my code starts.
But i want it to stop (not close the form) and start again when the user hits the button again to check if textbox is bigger than one this time
How do i do that?