Results 1 to 2 of 2

Thread: Adding time label captions together

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    12

    Post

    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

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,176

    Post

    Label3 = Format(CDate(Label1) + CDate(Label2), "HH:MM:SS")

    N.B. This will only show values within the 24Hr Range, eg. 00:00:00 - 23:59:59

    ------------------
    Aaron Young
    Analyst Programmer
    aarony@redwingsoftware.com
    adyoung@win.bright.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width