I'm using ADO 2.5. My database server is Oracle 8.0.5

When I execute a query with agregate function ( MAX for example) I get an
error:

"The Data provider or other service return an E_fail state"

This is the literal traduction of the spanish text of this error.

For example:

The following SQL return that error

SELECT MAX(Field_2) FROM AAAA WHERE 0=1

Executing directly from Oracle, this error not occurs.

Can I avoid this error without check the number of records ?

Thanks in advance
Antonio