la siguiente consulta me muestra todos los registros de la tabla sin llegar a tomar en cuenta el "NOT EXISTS" que he puesto. Sabríais decir por qué??
Código:
Muchas graciasSelect codProd,codLin,minStd,segStd from ProductoLinea as PL1 where codProd='" & prod & "' and not exists (Select * from ProductoLinea as PL2 where PL1.codLin=PL2.codLin and PL1.codProd=PL2.codProd and CDate(PL2.fecha)>CDate(PL1.fecha)) order by codLin asc"
![apachar ojo](http://static.forosdelweb.com/fdwtheme/images/smilies/wink.png)