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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subtraction

Status
Not open for further replies.

Ielamrani

MIS
Jul 7, 2005
183
US
Hi everyone,
I would like to subtract a text box time from another but I am having trouble..Can anyone help. Thanks in advance

I have 4 text boxes:
Txt1 9:00AM
Txt2 12:00Am

I would like Txt3 to show me 3 (which is Txt1 - Txt2)
 
You might want to look and the DateDiff() function for this.

Hope this helps

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
=Format([Txt2]-[Txt1],"h:nn")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top