Ver Mensaje Individual
  #7  
Antiguo 20-12-2016
identsoft identsoft is offline
Miembro
 
Registrado: abr 2006
Posts: 282
Reputación: 18
identsoft Va por buen camino
Cita:
Empezado por Casimiro Notevi Ver Mensaje
¿Seguro que son integer en la base de datos?
En el primer caso (CLIENTE) si, en el segundo caso (AGENTE) es un smallint( lo he visto ahora). Pero he corregido el primer query
Código Delphi [-]
    SQLVarios.SQL.Text := 'select count(*) as cuentas from CLIENTES ' +
                          ' where CLIENTE between :IDESDECLI and :IHASTACLI ' +
                          ' and AGENTE between :IDESDEAGEN and :IHASTAAGEN ';
    SQLVarios.ParamByName('IDESDECLI').AsInteger := StrToInt(edtDesdeCli.Text);
    SQLVarios.ParamByName('IHASTACLI').AsInteger := StrToInt(EdtHastaCli.Text);
    SQLVarios.ParamByName('IDESDEAGEN').AsSmallInt := StrToInt(EdtDesdeCor.Text);
    SQLVarios.ParamByName('IHASTAAGEN').AsSmallInt := StrToInt(edtHastaCor.Text)
y sigue saliendo 0
Responder Con Cita