I am trying to add 8.5 hour to a time in a txtbox that is bound to a form.
why does this code not work?
Code:
txtShiftEnd = DateAdd("h", 8, [TimeIN]) & DateAdd("n", 30, [TimeIN])
i get a really crazy answer with the second one like it is putting 2 answers in the same text box. so i tried this to add the two together. and it didnt work.
Code:
txtShiftEnd = DateAdd(sum("h", 8, [TimeIN]) & ("n", 30, [TimeIN]))
I figured it out by using this code but i am wondering why it didnt allow the first one to work
Code:
txtShiftEnd = DateAdd("n", 510, [TimeIN])
Thank you for your instruction and clarification
Walker