PDA

Click to See Complete Forum and Search --> : Adding Numeric label captions together


BJK
Nov 26th, 1999, 07:44 AM
My problem is that I have two labels each with captions of hh:mm:ss (e.g. 00:02:33 and 00:04:25) running on them. I wish to add these two together to get a result on a third label (e.g 00:06:58 per this example) how would I do this?, Do I need code? If so can some one help me write the answer to this example.Captions are continually updating.
I can't thank you enough for your help -bjk

Serge
Nov 26th, 1999, 08:40 PM
Try this:

Label3.Caption = Format(CDate(Label1.Caption) + CDate(Label2.Caption), "hh:mm:ss")

------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)