I want to shrink the following if possible is there a for or a loop that can run through this? Any help would be appreciated. Thanks
Function StartShift(ByVal T, ByRef Y, Z, X)
If X("S" & T) = #6:15:00 AM# Then
A = A - 0.23
B = B - 0.23
C = C + 0.23
S = #6:15:00 AM#
EndShift A, B, C, T, S, Y, Z, X
End If
If X("S" & T) = #6:30:00 AM# Then
A = A - 0.4
B = B - 0.4
C = C + 0.4
S = #6:30:00 AM#
EndShift A, B, C, T, S, Y, Z, X
End If
this code repeats until 12 am
Function StartShift(ByVal T, ByRef Y, Z, X)
If X("S" & T) = #6:15:00 AM# Then
A = A - 0.23
B = B - 0.23
C = C + 0.23
S = #6:15:00 AM#
EndShift A, B, C, T, S, Y, Z, X
End If
If X("S" & T) = #6:30:00 AM# Then
A = A - 0.4
B = B - 0.4
C = C + 0.4
S = #6:30:00 AM#
EndShift A, B, C, T, S, Y, Z, X
End If
this code repeats until 12 am