i have a query
which has two tables imtemaster and calibrationcertificate i have joined based on imtenumber field of both tables
SQL VIEW
SELECT DISTINCTROW IMTEMASTER.IMTENUMBER, CALIBRATIONCERTIFICATE.IMTENUMBER, CALIBRATIONCERTIFICATE.CALDATE, CALIBRATIONCERTIFICATE.STATUSCER,
FROM IMTEMASTER LEFT JOIN CALIBRATIONCERTIFICATE ON IMTEMASTER.IMTENUMBER = CALIBRATIONCERTIFICATE.IMTENUMBER;
is it possible to get result based on if condition is true
if mfgdate=caldate and field "statuscer" = scrap then it should get the list
if 2011=2011 and statuscer=scrap list shows
if mfgdate<caldate and field "statuscer" = scrap then it should not get in
the list
if 2011<2009 and statuscer=scrap no in list
i tried this in reports but not able to get it is it possible to get by query or vba code is required
which has two tables imtemaster and calibrationcertificate i have joined based on imtenumber field of both tables
SQL VIEW
SELECT DISTINCTROW IMTEMASTER.IMTENUMBER, CALIBRATIONCERTIFICATE.IMTENUMBER, CALIBRATIONCERTIFICATE.CALDATE, CALIBRATIONCERTIFICATE.STATUSCER,
FROM IMTEMASTER LEFT JOIN CALIBRATIONCERTIFICATE ON IMTEMASTER.IMTENUMBER = CALIBRATIONCERTIFICATE.IMTENUMBER;
is it possible to get result based on if condition is true
if mfgdate=caldate and field "statuscer" = scrap then it should get the list
if 2011=2011 and statuscer=scrap list shows
if mfgdate<caldate and field "statuscer" = scrap then it should not get in
the list
if 2011<2009 and statuscer=scrap no in list
i tried this in reports but not able to get it is it possible to get by query or vba code is required