WhiteHatMarine
Programmer
cannot seem to isolate this one...if I change the LIKE to = it works.
Error: Missing comma
SELECT aa.wono
,IIf(aa.item LIKE '7*' ,'Homeopathic','not homo') AS TEST
FROM (((ppwohd10 aa INNER JOIN (icitem10 bb LEFT JOIN tblProductTypes dd ON bb.itmclss = dd.ItemCode) ON aa.item = bb.item) INNER JOIN iciloc10 ee ON aa.item = ee.item) INNER JOIN arcust10 cc ON aa.custno = cc.custno) LEFT JOIN tblDivision ff ON ee.gllink = ff.GlLink
WHERE aa.status != 4 AND aa.compqty=0 AND aa.reqdte >= {09/01/2012} AND aa.reqdte <= {10/31/2012}
ORDER BY aa.reqdte
Error: Missing comma
SELECT aa.wono
,IIf(aa.item LIKE '7*' ,'Homeopathic','not homo') AS TEST
FROM (((ppwohd10 aa INNER JOIN (icitem10 bb LEFT JOIN tblProductTypes dd ON bb.itmclss = dd.ItemCode) ON aa.item = bb.item) INNER JOIN iciloc10 ee ON aa.item = ee.item) INNER JOIN arcust10 cc ON aa.custno = cc.custno) LEFT JOIN tblDivision ff ON ee.gllink = ff.GlLink
WHERE aa.status != 4 AND aa.compqty=0 AND aa.reqdte >= {09/01/2012} AND aa.reqdte <= {10/31/2012}
ORDER BY aa.reqdte