I have a problem getting the value of an IIF function that produces a DateDiff. Instead I'm getting numbers stored as text, and when I try to sort the report, the numbers are all over the place.
I tried the Val function on the DateDiff, but this only produce #Errors in certain fields...