An invalid ODBC handle was encountered (Error 40004)

An error caused by an invalid ODBC statement handle occurred when executing an ODBC operation.

Examine the rdoErrors collection for an exact description of the problem. If no information is found, make sure the statement handle wasn't deallocated or altered by a previous operation.