>>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
>
>
>I think this is what you want:
>
>
>IIF(EMPTY(Llamadas.fcita),(IIF(EMPTY(Llamadas.fatencion),(DATETIME()-Llamadas.fllamada)/3600,0),(DATETIME()-Llamadas.fcita)/3600),0)
>
>
>You are not passing 2 parameters to the 2nd IIF()
Oops, Sylvain is right, I missed the extra ",0"
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges