Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Northern, California, USA
    Posts
    1,886
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Simple Time Addition

    ***CODE START***
    calltime.Value = (Format(Timebox.Value, "hh:mm:ss") + Format(TextBox1.Value, "hh:mm:ss"))
    ****CODE END****

    What's wrong with this picture? The result is 00:00:0100:00:01. Any way to add the values? [img]/S/blush.gif[/img]

    Drk.
    <IMG SRC=http://www.wopr.com/w3tuserpics/Kel_sig.gif>
    Moderator:<font color=448800> Pix Place, Internet Explorer</font color=448800>
    <small>www.kvisions.com

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Simple Time Addition

    I assume that TimeBox and TextBox1 contain strings in the format "hh:mm:ss", and that calltime requires a string result. If that is correct, the try:

    <pre> calltime.Value = Format(TimeValue(Timebox.Value) + TimeValue(TextBox1.Value), "hh:mm:ss")
    </pre>

    Legare Coleman

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Northern, California, USA
    Posts
    1,886
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Simple Time Addition

    There it is.. Thanks Legare!! [img]/forums/images/smilies/smile.gif[/img]

    Drk.
    <IMG SRC=http://www.wopr.com/w3tuserpics/Kel_sig.gif>
    Moderator:<font color=448800> Pix Place, Internet Explorer</font color=448800>
    <small>www.kvisions.com

Posting Permissions

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