Hello,
Many thanks for the help. The result I'm trying to get is in days, which is
working, but there are times when an employee wants to take only 1/2 day, so
I thought I would enter the datediff in hours but that didn't work either. I
need to have it displayed as 1.5 days or 2.5 days, or whole days, if that's
possible. Part of the problem is that the employeee might take all of Tuesday
and then only half of Wed. Ugh.
"JimBurke via AccessMonster.com" wrote:
> Are you simply trying to translate the number of 'off days' into a number of
> half-days? e.g. if they had 2 days off, you want to return 4 half-days? if
> that's the case, I would think you would just calculate the number of days
> off using datediff and then multiply that by 2. Maybe I'm misinterpreting the
> purpose of the query.
>
> Joanne wrote:
> >Hello,
> >I have the following in a query field and I'm getting a strange result:
> >Iif ([Type Of Day]="Personal" or [Type of Day]="Jury Duty" Or [Type of
> >Day]="Carryover", "0",DateDiff("h",[OLP Begin Date],[OLP End Date]/24))
> >
> >The purpose of the query is to get a return for 1/2 vacation days, but it's
> >returning things like -908315 for one vacation day. I thought I was doing
> >this right, but obviously I'm not.
> >
> >Thank you very much for any help you can provide.
>
> --
> Jim Burke
>
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...dules/200906/1
>
>