I have a datdiff function in a query to work out mins worked less 30 for lunch.
What i need to do is have the datediff fuction only if the result is a + figure ie they have been at work.
At the moment if i -30 mins and the result of the datdiff is 0 then i get a -
30 result which puts all other calculatoins out.
I tried the iif statement like this iif(datediff([suns],[sunf]=0,0,datediff([sun s],[sunf])
help
What i need to do is have the datediff fuction only if the result is a + figure ie they have been at work.
At the moment if i -30 mins and the result of the datdiff is 0 then i get a -
30 result which puts all other calculatoins out.
I tried the iif statement like this iif(datediff([suns],[sunf]=0,0,datediff([sun s],[sunf])
help