Hey All,
I have time data in the following format, which is annoying, to say the least:
days.hours:minutes:seconds (i.e. 2 days, 3 hours, 4 mins, 12 seconds would be: 2.03:04:12) and there are no leading zeroes if there is no entry for any one of the d/h/m/s parts (i.e. 3 hours, 4 mins, 12 seconds would be 3:04:12).
I would like use a query to split this into four new fields (days, hours, minutes, seconds).
I was able to get seconds using Right$ and grabbing the last two digits, but I don't know how to handle taking pieces from the middle of the string, or accounting for zeroes that don't exist, or shorter periods of time that would not have all four pieces of data within the string.
Is there a way to grab a specific number of characters delimited by the "." or ":", while still handling the situations where the time is less than a day?
Is there a better way to do this/any ideas?
Thanks for your help! Please go easy on me; I'm pretty new to Access and trying to get my hands dirty pretty quickly.