Hello,
I have ODBC database reporting faults in automated crane system.
Fields I'm using:
ActiveTime - When fault started
EventTime - When fault was resolved
Expr1 - DateDiff("n",[Active Time],[EventTime]) - duration of fault
Message - fault description
area - area where fault occurred
I use append query to save all entries in new table. Query is indexed with ActiveTime and Message to avoid duplicated entries when appending.
Issue
Sometimes I have multiple faults with different 'Message' but related to same 'area' in the same time frame.
Eg.
3 different messages:
* Crane 5 Err 21 General 15 Emerg shutdown software Fault
start 16:07 finished 16:17
* 2JA2 Pickup Not Complete in Time Fault
start 16:16 finished 16:30
* Crane 5 Err 55 General 139 E-Stop safety relay no feedback Fault
start 16:18 finished 16:30
All related to same area "Crane 5"
What I need is
Area Crane 5 ActiveTime 16:07 (minimum time) EventTime 16:30 (maximum time)
I can't group them and use minimum/maximum expression as other faults can occur in the meantime not related to this issue or another issue in that area can happen after previous one is resolved.
I'm not very knowledgeable in access and everything I learned is this forum here so please be gentle
Thanks in advance.
I have ODBC database reporting faults in automated crane system.
Fields I'm using:
ActiveTime - When fault started
EventTime - When fault was resolved
Expr1 - DateDiff("n",[Active Time],[EventTime]) - duration of fault
Message - fault description
area - area where fault occurred
I use append query to save all entries in new table. Query is indexed with ActiveTime and Message to avoid duplicated entries when appending.
Issue
Sometimes I have multiple faults with different 'Message' but related to same 'area' in the same time frame.
Eg.
3 different messages:
* Crane 5 Err 21 General 15 Emerg shutdown software Fault
start 16:07 finished 16:17
* 2JA2 Pickup Not Complete in Time Fault
start 16:16 finished 16:30
* Crane 5 Err 55 General 139 E-Stop safety relay no feedback Fault
start 16:18 finished 16:30
All related to same area "Crane 5"
What I need is
Area Crane 5 ActiveTime 16:07 (minimum time) EventTime 16:30 (maximum time)
I can't group them and use minimum/maximum expression as other faults can occur in the meantime not related to this issue or another issue in that area can happen after previous one is resolved.
I'm not very knowledgeable in access and everything I learned is this forum here so please be gentle

Thanks in advance.