Hi all,
I am a relative beginner in VB. I know I can do certain things, but I am not sure of how. I have a time entry form that has a control array of 12 text boxes for check-in/out times (6 for each). I want to know the syntax for looping thru the controls. That is probably the easy part. I was wondering if anyone knows how, as I do, I can calc the actual time between each check-in and check-out to figure the total hours worked. E.G., txt_checkin_out(0) = 8:50 (this is the first check-in time and the first control in the array), and txt_checkin_out(1) = 11:30 (this is the first check-out time and the 2nd control in the array). How do I translate that into hours and minutes worked. I assume it is either some type of time() function or perhaps datediff()? Any help would be greatly appreciated.
Thanks,
Gary
I am a relative beginner in VB. I know I can do certain things, but I am not sure of how. I have a time entry form that has a control array of 12 text boxes for check-in/out times (6 for each). I want to know the syntax for looping thru the controls. That is probably the easy part. I was wondering if anyone knows how, as I do, I can calc the actual time between each check-in and check-out to figure the total hours worked. E.G., txt_checkin_out(0) = 8:50 (this is the first check-in time and the first control in the array), and txt_checkin_out(1) = 11:30 (this is the first check-out time and the 2nd control in the array). How do I translate that into hours and minutes worked. I assume it is either some type of time() function or perhaps datediff()? Any help would be greatly appreciated.
Thanks,
Gary