Oseitutuakrasi
New Member
- Joined
- Jun 7, 2023
- Messages
- 38
- Office Version
- 365
- Platform
- Windows
I have two textboxes as follows:
TextBox1.value=Time() ' This gives me the correct time (e.g. 11:12:56)
I want to add 90 minutes to the current time and display in the second textbox:
TextBox2.value=DateAdd("n", 90, Time()). 'For reasons I cannot figure out, this gives me 31/12/1899 (followed by the time with the 90 minutes added)
I cannot figure out how to get rid of the "31/12/1899" part. Can anybody help, please?
Thanks Guys!
TextBox1.value=Time() ' This gives me the correct time (e.g. 11:12:56)
I want to add 90 minutes to the current time and display in the second textbox:
TextBox2.value=DateAdd("n", 90, Time()). 'For reasons I cannot figure out, this gives me 31/12/1899 (followed by the time with the 90 minutes added)
I cannot figure out how to get rid of the "31/12/1899" part. Can anybody help, please?
Thanks Guys!