I have a progress bar that begins when the user presses a command button; but if there is no text in a cbo box, I want it to generate and error -- I have the error routine generating fine with an if statement; however the progress bar still goes and then I get debug errors in my sql statement because nothing was entered in the cbo box

How can I make the progress bar stop as well. I need to generate the error and go back to the process and not have the progress bar still progress

Thank you in advance!!!