[RESOLVED] "No error" condition
I want to enter data into a database, and if I get no errors, I want to put an error box saying the data was added. I don't want to get into a convoluted error handling scheme. Is the abscense of a return code a feasible way of handling this? Any suggestions? Alternatives?
Re: [RESOLVED] "No error" condition
Why are you executing the SQL in the Errorhandler? Especially when it will NEVER execute.
You're building the SQL, displaying a message box and exiting the sub. There's nothing there to error out, so it will never get to the Erorr Handler. And even if it did, your Resume will jump straight to the exit sub, and NEVER call the cn.Execute, and never will the cn.Close.
-tg