Results 1 to 2 of 2

Thread: Time > 5PM

  1. #1
    Guest
    I got the DateDiff to work. Now my question is how would I have it figure out this

    If EndTime > than 5:00PM Then
    EndTime = EndTime * 1.5
    End If

    Can someplease help me out. I never worked with time before so I completely lost at what I'm doing.

    Thanks

    Ken Devorak


  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    Hi, Ken.

    Code:
    Dim EndTime As Date
    Dim MyTime As Date
    
    EndTime = #6:00:00 PM#
    MyTime = #5:00:00 PM#
    
    If EndTime > MyTime Then
    EndTime = Format(EndTime * 1.5, "hh:nn:ss")
    End If
    Debug.Print EndTime
    Larisa

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