Ver Mensaje Individual
  #6  
Antiguo 13-09-2004
aurafern aurafern is offline
Miembro
 
Registrado: dic 2003
Posts: 34
Reputación: 0
aurafern Va por buen camino
Unhappy

Yo tengo el mismo problema!!.

Escribo la siguiente consulta:

Código SQL [-]
SELECT SUM(e.DEBITO-e.CREDITO) AS SALDO, e.ID_AUXILIAR,e.ID_EMPRESA_CRUCE, e.ID_SUCURSAL_CRUCE,e.ID_TIPO_DOC_CRUCE, e.numero_cruce, E.CUOTA_CRUCE,
d.fecha, d.vencimiento,e.id_tercero,e.ID_SUCURSAL_TERCERO FROM CUENTAS_POR_TERCERO e , cuentas_por_tercero d
where e.ID_EMPRESA_CRUCE=d.ID_EMPRESA and e.ID_SUCURSAL_CRUCE=d.ID_SUCURSAL
and e.ID_TIPO_DOC_CRUCE= d.id_tipo_doc and e.numero_cruce=d.numero  AND e.ID_EMPRESA=:EMPRESA AND E.ID_SUCURSAL=:SUCURSAL AND
E.ID_TERCERO=:ID_TERCERO and e.cuota_cruce=d.cuota
AND (D.VENCIMIENTO - :PFECHA)<ESDE AND ( D.VENCIMIENTO - :PFECHA)>:HASTA
GROUP BY e.ID_AUXILIAR,e.ID_EMPRESA_CRUCE, e.ID_SUCURSAL_CRUCE,e.ID_TIPO_DOC_CRUCE,
e.numero_cruce, E.CUOTA_CRUCE , d.fecha, d.vencimiento,e.id_tercero,e.ID_SUCURSAL_TERCERO
having SUM(e.DEBITO-e.CREDITO)<>0


y en el IBConsole, arroja el siguiente error:

Data type unknown, ni siquiera me pide los parámetros

si remplazo este fragmento de intruccion
Código SQL [-]
(D.VENCIMIENTO - :PFECHA)<ESDE AND ( D.VENCIMIENTO - :PFECHA)>:HASTA
por
Código SQL [-]
(D.VENCIMIENTO - :PFECHA)<-100 AND ( D.VENCIMIENTO - :PFECHA)>100

Me pide los parametros:

empresa=1, sucursal=1, id_tercero=1, pfecha=09/09/2004

y arroja el siguiente error

"Could not convert variant of type (string) into type (boolean)"

Qué hago?.

Es que realmente estos inicios en FireBird, me han dado muy duro.

Muchas gracias por su colaboración!
Responder Con Cita