Hello.
I am working in a manufacturing environment and tracking machine failures. Each machine failure will come into my database with a time stamp like:
12/27/2016 4:33:10 PM
I would like to associate a Shift to each one of these occurrences inside of a query. This will allow me to later analyze failures based on the shift (who is working). I would like to make a formula that will write the "Shift Start" time stamp like this:
12/27/2016 7:00:00 AM
Our shifts start times are either 7 AM or 7 PM, so it should take the failure time and write the last shift start time.
I am accomplished this already but I am doing it in text format which then makes a problem for my excel filters. I would like help to do this but keeping it in date/time format. Here is what I did in text format:
Shift Start: [Date] & " " & IIf(Format([wo reportdate],"hh") In (7,8,9,10,11,12,13,14,15,16,17,18),"7:00:00 AM","7:00:00 PM")
Here is [Date]:
Date: Format([Actual Finish]-(7/24),"m/d/yyyy")
Thanks for your help!
I am working in a manufacturing environment and tracking machine failures. Each machine failure will come into my database with a time stamp like:
12/27/2016 4:33:10 PM
I would like to associate a Shift to each one of these occurrences inside of a query. This will allow me to later analyze failures based on the shift (who is working). I would like to make a formula that will write the "Shift Start" time stamp like this:
12/27/2016 7:00:00 AM
Our shifts start times are either 7 AM or 7 PM, so it should take the failure time and write the last shift start time.
I am accomplished this already but I am doing it in text format which then makes a problem for my excel filters. I would like help to do this but keeping it in date/time format. Here is what I did in text format:
Shift Start: [Date] & " " & IIf(Format([wo reportdate],"hh") In (7,8,9,10,11,12,13,14,15,16,17,18),"7:00:00 AM","7:00:00 PM")
Here is [Date]:
Date: Format([Actual Finish]-(7/24),"m/d/yyyy")
Thanks for your help!