Ver Mensaje Individual
  #5  
Antiguo 21-08-2013
steelha steelha is offline
Miembro
 
Registrado: mar 2012
Posts: 158
Reputación: 13
steelha Va por buen camino
Verificando puse en comentario las lineas

Código Delphi [-]
  { // Obtener el número total de estaciones de servicio activas
    Close;
    SQL.Text := 'SELECT COUNT(*) AS MAX_REG FROM tblRepresentante WHERE ACTIVO = ''S'' ';
    Open;
    if isEmpty then
      raise Exception.Create('No hay estaciones de servicio activas');
    MaxRegs :=  FieldByName('MAX_REG').AsInteger;

    ShowMessage('TODO BIEN');     }

y me funciona no da ningún error
Responder Con Cita