January 21, 200917 yr Hi I try to make a calulation on my record to show the input data is been key in on "Day Shift" or "Night Shift" Our Day Shift start on 0800hrs to 2000hrs and Night Shift start on 2000hrs to 0700hrs. I set my calculation as Case(08:0020:00 ; Day Shift : 20:0008:00 ; Night Shift) But not working How should i do it, Can anyone help. Thanks Thanks gregory Edited January 21, 200917 yr by Guest
January 21, 200917 yr You're forgetting the AND operator and by it screws up the syntactical rules... But you might apply some math instead and do it this way: Case(Abs(Hour ( theTime )-13,5) ≤ 5,5;"Dayshift";"Nightshift") ...whether or not it makes it more readable depends on you milage : --sd
Create an account or sign in to comment