I agree with Orange.... need more info about your query(s) and dB design.
However, looking at what you provided, I would design the table differently. IMO, the design of the table is in classic "spreadsheet" design - short and fat.
I would design it tall and narrow:
Code:
ID (PK - Autonumber - actually a poor name)
EventAction_FK (Long) << - What happened / FK to table EventAction
Shift (Integer)
FurnaceNum (Integer - NO spaces in name)
EventDateTime (Date/Time) << - when it happened
The EventAction table:
Code:
tblEventAction
---------------
EA_ID (PK - autonumber)
EventActionDesc (Text)
Data Desc would be:
1 Power On
2 Start Pour
3 End Pour
Then it is relatively easy to get the date/time for the end of shift 1 and the beginning of shift 2, depending on what you define as the end of a shift and the start of another.
My $0.02 ..........