• Time Calculation (VB6)

    Author
    Topic
    #402574

    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

    Viewing 1 reply thread
    Author
    Replies
    • #802020

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

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

    • #802021

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

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

    Viewing 1 reply thread
    Reply To: Time Calculation (VB6)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: