>help!
>what am I doing wrong here. It returns an error saying is missing a comma.
>Can I use the LOCATE here?
>
>IIF(LOCATE FOR temp.Fyr = '2002' AND temp.source '777'),temp.descr," ")
No - LOCATE is a command; you need to run the LOCATE before the IIF() and then check FOUND(), or incorporate the logic that performs the LOCATE into a UDF that returns the value of FOUND(), and call the UDF.