Ver Mensaje Individual
  #1  
Antiguo 29-02-2012
identsoft identsoft is offline
Miembro
 
Registrado: abr 2006
Posts: 282
Reputación: 19
identsoft Va por buen camino
Error sqlQuery 'field CODIGO not found'

tengo el siguiente código:
Código Delphi [-]
SQLQSecciones.close;
SQLQSecciones.clear;
SQLQSecciones.SQL.Add ('Select max(codigo) as winteger from depart);
SQLQSecciones.open;
SQLQSecciones es un SQLQUERY.
codigo es un campo de la tabla Depart y está incluido en el field editor del SQLQSecciones.
Al hacer el OPEN me da siguiente error:
SQLQSecciones:Field 'CODIGO' not found

¿Alguien sabe que pasa?
Estoy utilizando delphi XE2 y Firebird 2.5
Responder Con Cita