Jump to content
Sign in to follow this  

Calculation for Time

Recommended Posts


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.




Edited by Guest

Share this post

Link to post
Share on other sites

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 :


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.