Try the following in the Contol Source of the Total Hours textbox. It
should, of course, all be on one line.
=Format(((CInt(Left([SET], 2))+CInt(Left([UET], 2))+CInt(Left([OtherTime],
2)))*60+(CInt(Right([SET], 2))+CInt(Right([UET], 2))+CInt(Right([OtherTime],
2))))\60, "00") & ":" & Format(((CInt(Left([SET], 2))+CInt(Left([UET],
2))+CInt(Left([OtherTime], 2)))*60+(CInt(Right([SET], 2))+CInt(Right([UET],
2))+CInt(Right([OtherTime], 2)))) Mod 60, "00")
This assumes 2 characters to the Left and Right of the colon. If there may
be only one number to the left of the colon, as in your Othertime example,
use Val instead of CInt on the Left items. Val will change ("5:") to 5 where
as CInt will return an error.
--
Wayne Morgan
MS Access MVP
"christian" <cs********@partners.org> wrote in message
news:e1**************************@posting.google.c om...
Hi all,
I've four fields in a form that I want to add, I want them to be equal
to total hours; but I don't know how.The data types of these fields is
TEXT.
SET UET Othertime Total Hours
05:00 05:00 5:00 15:00