Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Feb 2003
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Time Calculation (VB6)

    Hi,

    I have tried to make a time calculation (12:00 - 1:00), but an error prompts, "Type Mismatch".
    Is there a way for me to avoid this? Thanks in advance.

    Regards,
    chl88

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Time Calculation (VB6)

    Time values must be enclosed in # characters: #12:00#

    Alternatively, you can use TimeValue("12:00") or TimeSerial(12, 0, 0)

Posting Permissions

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