LOL
the GRRRR was me growling at Access....I love Access but man do I hate it
sometimes. It is the pickiest piece of software!!!
I used the DateDiff function in my queries to get the numbers of mintues i
needed to calculate then I used another code to format it into hours and
minutes.
The following is my codes in my queries for others to use if needed:
Early Minutes: DateDiff("n",[Left Time],[End Time])
Early Real Time: IIf([Early Minutes]<0,[Early Minutes]+1440,[Early Minutes])
VTO Minutes: DateDiff("n",[VTO Time],[End Time])
VTO Real Time: IIf([VTO Minutes]<0,[VTO Minutes]+1440,[VTO Minutes])
Late Minutes: DateDiff("n",[Start Time],[Arrive Time])
Late Real Time: IIf([Late Minutes]<0,[Late Minutes]+1440,[Late Minutes])
In the reports:
I made a Sum text box to calculate the total mintues from the previous codes
then I used the code: =[Total Minutes]\60 & Format([Total Minutes] Mod
60,"\:00")
to format the minutes into hours and minutes.
The Minutes first calcuates the time the employee missed by either being
late, leaving early, or taking voluntary time off. The Real Time converts
negative time incase the times enter fall between 2 days (i.e. left at 23:00
but shift ended at 2:00 the next day)
All kudos for the above go to Allen Brown for his webpage. Totally helped
me out there.
Thanks again Dika