weeblebiker
Registered User.
- Local time
- Today, 15:08
- Joined
- May 27, 2010
- Messages
- 70
Hi, first I'm marginally access literate but functionally SQL illiterate
I have a repair database which include [serialnumber] and [date in].
there may be multiple repairs on a unit so the table has duplicate [serialnumber]s and a different [date in] for each of the [serialnumber]for each time the unit has been in for repair
I want to find the time interval(s) between the dates as in date 1 and date 2, date 2 and date 3, and NOT date 1 and date 3
I've played with the =DateDiff( function and can get it to work between two dates.
I have no clue how to get the time between the first date and second date, second date and third date, etc,,
I think I need some form of repeating function (Macro?) selecting the first , next date then a looping last date used in function, next date, repeat till no more dates, but hove no idea how to write it and where to put it.
I have a repair database which include [serialnumber] and [date in].
there may be multiple repairs on a unit so the table has duplicate [serialnumber]s and a different [date in] for each of the [serialnumber]for each time the unit has been in for repair
I want to find the time interval(s) between the dates as in date 1 and date 2, date 2 and date 3, and NOT date 1 and date 3
I've played with the =DateDiff( function and can get it to work between two dates.
I have no clue how to get the time between the first date and second date, second date and third date, etc,,
I think I need some form of repeating function (Macro?) selecting the first , next date then a looping last date used in function, next date, repeat till no more dates, but hove no idea how to write it and where to put it.
Last edited: