shawnwmorris
Programmer
I have a simple form project that will take a value and use that to do some SQL statements. I am trying to check the textbox to make sure there is a value actually present in the textbox after the "go" button is pushed. In the code of for the click event of the button I have some code to execute the SQL statements.
I want to put the check in the code for the button after it is pressed. How do I make the code stop executing? I want nothing to happen if the textbox is not filled in.
I have this:
IF thisform.polNum.Value = ""
MESSAGEBOX("Please enter a Policy number to continue",16,"All done!")
Exit
endif
This creates a nesting error. How do I just stop the code from moving past that point?
I want to put the check in the code for the button after it is pressed. How do I make the code stop executing? I want nothing to happen if the textbox is not filled in.
I have this:
IF thisform.polNum.Value = ""
MESSAGEBOX("Please enter a Policy number to continue",16,"All done!")
Exit
endif
This creates a nesting error. How do I just stop the code from moving past that point?