Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to calculate difference between hours field

Status
Not open for further replies.

poliv

Programmer
Jun 3, 2000
48
0
0
US
Hi,

I have a problem to calculate the difference between to fields with the format hh:mm.

Example:

Field_A -> 14:05

Field_B -> 15:10

Difference (Field_B - Field_A)-> 01:05

Thanks
 
Format Field_A and Field_B as 'Short Time'.

Create an unbound control and format this as 'Short Time' as well. Set the Control Source for the unbound control to

=Field_A - Field_B

This should do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top