I've been racking my brain on this . . . why doesn't it work? Error is extra ")" in query expression! I've tried a zillion different ways to correct it.
Thanks . . . Rick
Thanks . . . Rick
Code:
SELECT C.OfcName, S.ListName, S.SellName,
IIF(Sum(S.ListName) Like (C.OfcName &"*")) And ((S.SellName) Not Like (C.OfcName &"*")),S.SalePrice*2,0)) AS TSODV
FROM CBAll AS C, SCMLS AS S
GROUP BY CBAll.OfcName;