Ver Mensaje Individual
  #1  
Antiguo 25-02-2009
tebre tebre is offline
Miembro
 
Registrado: nov 2008
Posts: 93
Reputación: 18
tebre Va por buen camino
contar elemento de un select

hola compalñeros que tal miren mi duda esta en un select:
Código Delphi [-]
  Datos.QryInsertDetalleSolicitud.Close;
  Datos.QryInsertDetalleSolicitud.SQL.Clear;
  Datos.QryInsertDetalleSolicitud.SQL.Add('SELECT * ');
  Datos.QryInsertDetalleSolicitud.SQL.Add('FROM DetalleSolicitud');
  Datos.QryInsertDetalleSolicitud.SQL.Add('WHERE ClaveProducto='+ QuotedStr(Claveproducto)+ ' AND FolioSolicitud=' + EdfolioSolicitud.Text +';');
  Datos.QryInsertDetalleSolicitud.Open;
  if Datos.QryInsertDetalleSolicitud.RecordCount = 0 then {AQUI.- Quiero saber cuando solamente me quedeo un campo. como hacer eso??}
    Begin
      Application.MessageBox('En la solicitud debe contener un producto como minimo !!!', '::: Error :::',MB_ICONERROR);
    End
  else
    begin
    {aqui borro al elemento}
    end;



espero me puedan ayudar grax
Responder Con Cita