P
pu5
I have a query (qryShear) that selects records from a table (tblLbrHrs).
Example follows...
EqNoDesc EqNo Desc CompDate
Shear_A 1250 desc.detail 08/27/05
Shear_A 1250 desc.detail 09/09/05
Shear_C 1475 desc.detail 05/13/05
Shear_B 1800 desc.detail 03/05/05
Shear_A 1250 desc.detail 05/27/05
Shear_B 1800 desc.detail 03/25/05
Shear_C 1475 desc.detail 05/24/05
I want to run a report that produces the following results...
Equipment Desc Detail Compl Date Days Between Repairs
1250 - Shear_A desc.detail 05/27/05 0 days
desc.detail 08/27/05 92
days
desc.detail 09/09/05 13
days
1800 - Shear_B desc.detail 03/15/05 0 days
desc.detail 03/25/05 20
days
1475 - Shear_C desc.detail 05/13/05 0 days
desc.detail 05/24/05 11
days
My problem is how do I calculate the Days Between Repairs?
Example follows...
EqNoDesc EqNo Desc CompDate
Shear_A 1250 desc.detail 08/27/05
Shear_A 1250 desc.detail 09/09/05
Shear_C 1475 desc.detail 05/13/05
Shear_B 1800 desc.detail 03/05/05
Shear_A 1250 desc.detail 05/27/05
Shear_B 1800 desc.detail 03/25/05
Shear_C 1475 desc.detail 05/24/05
I want to run a report that produces the following results...
Equipment Desc Detail Compl Date Days Between Repairs
1250 - Shear_A desc.detail 05/27/05 0 days
desc.detail 08/27/05 92
days
desc.detail 09/09/05 13
days
1800 - Shear_B desc.detail 03/15/05 0 days
desc.detail 03/25/05 20
days
1475 - Shear_C desc.detail 05/13/05 0 days
desc.detail 05/24/05 11
days
My problem is how do I calculate the Days Between Repairs?