I'm having an issue with the query below, I need the "Expr2" field to only display result with >= 8 after the subtractin but the onyl thing that comes up is a -1 for when the number is >8. I would greatly appreciate any advice.
SELECT PIRF_ITEMMSC.IMBNBR, PIRF_ITEMMSC.IMBNAM, PIRF_PIRITEM.ITWHDP, PIRF_PIRITEM.ITITEM, PIRF_PIRITEM.ITDESC, PIRF_PIRITEM.ITPDSC, [ITRCVD]/100 AS Expr1, PIRF_PIRITEM.ITSWGT, [Expr1]-[ITSWGT] AS Expr2
FROM (PIRF_PIRITEM INNER JOIN PIRF_ITEMMSC ON PIRF_PIRITEM.ITITEM = PIRF_ITEMMSC.IMITEM) INNER JOIN PIRF_SLOT3 ON PIRF_PIRITEM.ITITEM = PIRF_SLOT3.SLITEM
WHERE (((PIRF_SLOT3.SLPICK)="Y"));
SELECT PIRF_ITEMMSC.IMBNBR, PIRF_ITEMMSC.IMBNAM, PIRF_PIRITEM.ITWHDP, PIRF_PIRITEM.ITITEM, PIRF_PIRITEM.ITDESC, PIRF_PIRITEM.ITPDSC, [ITRCVD]/100 AS Expr1, PIRF_PIRITEM.ITSWGT, [Expr1]-[ITSWGT] AS Expr2
FROM (PIRF_PIRITEM INNER JOIN PIRF_ITEMMSC ON PIRF_PIRITEM.ITITEM = PIRF_ITEMMSC.IMITEM) INNER JOIN PIRF_SLOT3 ON PIRF_PIRITEM.ITITEM = PIRF_SLOT3.SLITEM
WHERE (((PIRF_SLOT3.SLPICK)="Y"));