Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Logic Statement using Time Field

Featured Replies

I'm very new, so be gentle.

I'm trying to find times during which I have more than 2 tests booked after 4:30 pm. If this is the case than I have to recruit an extra person to work during that extended test period.

I tried using a simple logic statement to find and count the time field, but I consistantly encounter errors (e.g. 9 or 9:30 am is counted as well.)

I just used this...

Case(timefield >= "4:30 pm";1;"")

Though the time entered could have been keyed-in as 4:30pm, 4:30 p.m., etc., the time was formatted as 4:30 pm

Can I not use Case for a time field?

Thanks for your help

Amy :o

When creating a time field you could check the option of require strict data type and set it to time of day so the user will be forced to enter the time in the same format always or you could just use formatting so that when someone enters 9 or 9:30pm the field will always return 9:30 PM.

Example with the phone number:

"(" & Left(Phone;3) & ") " & Middle(Phone;4;3) & "-" & Right(Phone;4)

Do not take me for my word, I am new here too.

Your issue is not using a Case with a time field. It is what you are comparing it to.

Try.

Case ( timefield >= GetAsTime ( "16:30" ); 1 )

  • Author

John, THANK YOU!!!! it worked

thanks

Amy

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.