qrptProductos.Query1.SQL.Clear;
qrptProductos.Query1.SQL.Add('select ayb.Id_ab,ayb.Descripcion,ayb.Receta' +
',ayb.Costo,productos.descripcion,productos.Costo,ingredientes.Cantidad,' +
' ingredientes.cantidad * productos.costo as SubTotal from ayb inner join' +
' ingredientes on ayb.Id_ab=ingredientes.Id_ab inner join productos on'+
' ingredientes.Id_producto=productos.Id_producto where ayb.Id_ab=:IDAB');