I would appreciate help with the following problem:
My script connects to an ODBC source and retrieves data. Our ODBC driver allows a user to specify a group which isolates the user to a specific data area. The test case I am having issues with, connects to the ODBC source with an invalid group. This generates an application error message.
The code:

connection = SQLOPEN("DSN=...)

I need to verify the text in the error message but I can not do so because control is not returned to Robot until I terminate the error message window at which point I have nothing to verify. Is there away to pass control to the next line in the code (verification point) if the error window has not been closed?