|
-
Aug 2nd, 2000, 01:48 PM
#1
Thread Starter
New Member
In a Table I have a two time fields one time_in the other Time_out How do I add both and que the result in Hours and minutes, instead of decimal numbers.
-
Aug 2nd, 2000, 03:06 PM
#2
Frenzied Member
Sounds like you might want to look at DateAdd and DateDiff.
-
Aug 7th, 2000, 12:02 PM
#3
Thread Starter
New Member
Thanks for all the help. dateDiff and dateAdd did not help me in the problem but I sure learned alot from those two commands. the way I did it was a long way. Break the time the hours in minutes and then ad it to the minutes of the hours an then put it back in hours and minutes format.
for instance:
Tminutes_in = (Hours_in * 60)+minutes_in
Tminutes_out =(hours_out *60)+minutes_out
Totalminutes= Tminutes_out - Tminutes_in
total_hours = Totalminutes/60
Total_minutes= totalminutes mod 60
txtDisplayTime.text = total_hours & ":" & total_minutes
I hope it helps some one out there
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|