I submitted an earlier problem about using SetWarnings but now have more information that clarifies the problem:
I wanted to turn off an expected warning which says:
"Microsoft Access was not able to append all the data to the table. Do you want to proceed anyway?"
I wanted this turned off because I don't want the user to be able to click "Yes" (by accident) on this message. "Yes" turns out to circumvent the error handler. The response should always be "no" so the error handler can then go into action.
If I use SetWarnings to turn off the system message, it will be as if the user clicked "Yes."
Is there any way of doing this so the system thinks the response was "No"?
Thanks.
Paul
I wanted to turn off an expected warning which says:
"Microsoft Access was not able to append all the data to the table. Do you want to proceed anyway?"
I wanted this turned off because I don't want the user to be able to click "Yes" (by accident) on this message. "Yes" turns out to circumvent the error handler. The response should always be "no" so the error handler can then go into action.
If I use SetWarnings to turn off the system message, it will be as if the user clicked "Yes."
Is there any way of doing this so the system thinks the response was "No"?
Thanks.
Paul