I need a query that runs and updates a beginning reading from an ending reading.
What I have.
Tbl-
Date, Shift, Machine_Nbr, Start_Counter, End_Counter
Since shift and date would be unique I need to say make shift 3 start equal shift 2 end and so on. The problem is I cannot guarantee that they will be entered in order so any logic that requires shift reports are entered in order would die. I think I need something like a shift sequence number that is based on the date serial number and the shift ( not sure how) and then look for empty start_counters when one is found determine the date and shift serial number and look for the date and shift serial number of the needed end_counter. I am not opposed to VBA just not my norm.
Thanks for any help!
What I have.
Tbl-
Date, Shift, Machine_Nbr, Start_Counter, End_Counter
Since shift and date would be unique I need to say make shift 3 start equal shift 2 end and so on. The problem is I cannot guarantee that they will be entered in order so any logic that requires shift reports are entered in order would die. I think I need something like a shift sequence number that is based on the date serial number and the shift ( not sure how) and then look for empty start_counters when one is found determine the date and shift serial number and look for the date and shift serial number of the needed end_counter. I am not opposed to VBA just not my norm.
Thanks for any help!