W
WLMPilot
I am using a userform to enter Time In/Out via textbox1 (in) & textbox2
(out). Time will be entered based on 24-hr clock, ie 10:00pm is 2200 or
22:00.
Question 1:
Is there a way to format the textbox to include the colon?
Question 2:
I will calculate the difference to determine total hours (with two decimal
places). Currently, this is how I have it (partial macro), but I am getting
zero as answer.
How is the best way to solve this?
DIM ttltime2 As DOUBLE
ttltime2 = VAL(Textbox2) - VAL(Textbox1)
Thanks and Happy New Year!!
Les
(out). Time will be entered based on 24-hr clock, ie 10:00pm is 2200 or
22:00.
Question 1:
Is there a way to format the textbox to include the colon?
Question 2:
I will calculate the difference to determine total hours (with two decimal
places). Currently, this is how I have it (partial macro), but I am getting
zero as answer.
How is the best way to solve this?
DIM ttltime2 As DOUBLE
ttltime2 = VAL(Textbox2) - VAL(Textbox1)
Thanks and Happy New Year!!
Les