In your table set the format of your time fields to SHORT TIME
in the table also set the INPUT MASK to 00:00;0;_ (you can also choose this from the list if you click the button with the ... mark on it)
If you have already created forms you will need to go to each form and set the input mask of those too.
In your query that totals hours (or if it's on the form it's the same thing)
Use this:
Code:
TotalHours: DatePart("h",[actualweek1])+DatePart("h",[actualweek2])+DatePart("h",[actualweek3])+DatePart("h",[actualweek4])+Int((DatePart("n",[actualweek1])+DatePart("n",[actualweek2])+DatePart("n",[actualweek3])+DatePart("n",[actualweek4]))/60)+((DatePart("n",[actualweek1])+DatePart("n",[actualweek2])+DatePart("n",[actualweek3])+DatePart("n",[actualweek4])) Mod 60)/60
To break it down:
This part:
Code:
TotalHours: DatePart("h",[actualweek1])+DatePart("h",[actualweek2])+DatePart("h",[actualweek3])+DatePart("h",[actualweek4])+
Totals all the hour parts
This part:
Code:
Int((DatePart("n",[actualweek1])+DatePart("n",[actualweek2])+DatePart("n",[actualweek3])+DatePart("n",[actualweek4]))/60)+
Totals all the minutes and takes the integer value (does not round up) of the total minutes divided by 60 (or additional hours)
This part:
Code:
((DatePart("n",[actualweek1])+DatePart("n",[actualweek2])+DatePart("n",[actualweek3])+DatePart("n",[actualweek4])) Mod 60)/60
Takes the remaining minutes after you divide by 60 and divides that number by 60 to get the fraction of an hour.
I only did this formula for 4 fields (actualweek1 through actualweek4) but it should be easy enough to add the addionalweek fields to the forumla. Just a note, if your SQL statement gets too long (and it may with this many fields) just shorten your field names to AW1, AW2, AW3 etc. and you should have more than enough space for the forumla to work.