Perdonad la falta de info.
Uso Delphi6, QReport e Informix.
El error salta al hacer el Q_CAVENT.OPEN y es el siguiente:
Project MNTCAVENT.exe raised exception class EDBEngineError with message 'General SQL error. Unknown error message number '-404'. Process stopped. Use Step or Run to continue.
El caso es que cuando le doy al OK para que se cierre el error me lleva al QuickRpt con la flecha señalando aquí:
Código Delphi
[-]
if PrintBand then
begin
if ForceNewPage and not PageBroken and
not (BandType in [rbPageHeader, rbPageFooter, rbTitle, rbOverlay]) and (ParentReport.PageNumber > 0)
then
begin
ParentReport.ForceNewPage;