Jump to content

Calculation for Time


This topic is 5545 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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 by Guest
Link to comment
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 :

--sd

Link to comment
Share on other sites

This topic is 5545 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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