>Am i doing something wrong with this:
>
>
IIF(EMPTY(Llamadas.fcita),(IIF(EMPTY(Llamadas.fatencion),(DATETIME()-Llamadas.fllamada)/3600,0)),(DATETIME()-Llamadas.fcita)/3600,0)
>
>Thanks for the help
Edgar,
I agree with Mike. Unless there's an over-riding condition, such as this is in a report text field or this code is called 10s of millions of times in a method, it's much better to use the classical IF...THEN...ELSE...ENDIF structure if only for the purpose of clarity.
George
Ubi caritas et amor, deus ibi est