3 replies
by bob sellman
I don't believe there is any way to reset the "default" start time in Access.
It would help if you explained what you are trying to accomplish. I assume that you are trying to measure the elapsed time for something. If that is the case, then all you need to do is be sure that the date is captured as part of the time. All times carry a date with them. If you don't enter a date, it is set to a default starting date (which might be 12/30/99), so if you have something with a start time of 7:00AM and end time of 3:00AM, unless the correct date is included the end time in the record will be 4 hours before the start time entered. If the correct date is included, then the Access functions to calculate differences in time will work correctly.
As an alternate, if "nothing ever" takes more than 23 hours and 59 minutes, you could take the result of the difference of subtracting the start time from the end time (DateDiff function) and if it is negative, add 24 hours to it to get the correct elapsed time.
I put "nothing ever" in quotes because that's one of those dangerous assumptions that can really mess up an application when something does violate the assumption.
by wkhashi
by bob sellman
Actually, I was not suggesting that your users would do calculations and then enter the results, just that you must make sure that both the date and the time are captured.
Based on your added comment, all you have to do is when you use the starting and ending times for the calculations (which you would do in code behind the input form, presumably when the ending time is entered for a specific activity), adjust them before calculating where the hours go. Just subtract 7 hours from each time with the DateAdd function, then compute the hours to charge to each workday.
This discussion is closed to new replies.
Trending Software posts
Sort by Trending