Results 1 to 4 of 4

Thread: [RESOLVED] adding time

  1. #1

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Resolved [RESOLVED] adding time

    hey all i've got the following code to show the time in a label

    VB Code:
    1. timee = Format(Time, "hh:mm")
    2. Me.Label1.Caption = timee

    how could i have it when you click on a button it adds say 3 mins to the current time displayed in the label ?
    Last edited by Hack; Jul 27th, 2006 at 01:48 PM. Reason: Added [RESOLVED] to thread title and green "resolved" checkmark

  2. #2

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: adding time

    VB Code:
    1. Private Sub Command1_Click()
    2. timee =  DateAdd("n", 3, timee)
    3. End Sub

  4. #4

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Re: adding time

    alrigh worked thanks alot

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