Jump 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.

Date: Excluding Weekends in a spcified calc

Featured Replies

As I build my database, i constantly run into problems that my brains can't figure out all alone.

Anyway, I have a "last call" and "next call" field with buttons. The "last call" field inserts current date (fine..no problem. super easy to do).

My "next call" field/button brings up custom dialog for "one day," "3 months" or "exact date."

Regardless of that,

I need to specify a calculation that if the next call equals a Saturday or Sunday, automatically inserts "Monday" into the next call field.

Do you follow me? I hope so.

More importantly, do you have any suggestions?

fishbone,

Try somthing like this.

Let ( [ dw = DayOfWeek ( Date); f =  Case (dw = 1; Date + 1; dw = 7;  Date + 2; Date)] ; f )

If you want to consider holiday etc. You will have to modify this calc of course.

  • Author

Let me try this in just a bit. I will try it out. It should work. I'll let you know.

Thanks.

I guess to take your fields, and tweak the calculation that you will use in your calculated results field, try this one instead.

Let ( [ dw = DayOfWeek ( Date); 

               d = next call;

               f =  Case (dw = 1; d + 1; dw = 7;  d + 2; d)

            ]; 

            f 

          )

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.