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 Calculations, modifyable?

Featured Replies

Hey Folks,

I have a tech support database that contains a Follow Up Date field. A small script searches for any follow-ups that need to be done on that day when a tech opens the database in the morning. The Follow Up Date field is a calc. based on the Date Created field. It looks like:

Follow Up Date =

If (Follow Up Required = "Yes", Date Created + 7, "N/A")

The result is set to "Date" and it works great.

But now the techs have asked that I make that field modifyable, so that they can change it if they can't get a hold of the client on that day, or the client says "Call me back next week." or whatever.

For the life of me, I can't make this field both Auto-enter, and modifyable. I tried setting the field result to "Text" and then using the same calc, but it does not work. Any suggestions?

Frank

quote:

Originally posted by Bioboy:

Hey Folks,

I have a tech support database that contains a Follow Up Date field. A small script searches for any follow-ups that need to be done on that day when a tech opens the database in the morning. The Follow Up Date field is a calc. based on the Date Created field. It looks like:

Follow Up Date =

If (Follow Up Required = "Yes", Date Created + 7, "N/A")

The result is set to "Date" and it works great.

But now the techs have asked that I make that field modifyable, so that they can change it if they can't get a hold of the client on that day, or the client says "Call me back next week." or whatever.

For the life of me, I can't make this field both Auto-enter, and modifyable. I tried setting the field result to "Text" and then using the same calc, but it does not work. Any suggestions?/B]

You currently have a "Calculation" field.

Make this an "Auto-entered Calculation", which is a normal Date field with the calculation in the Auto-Enter options. This will set the date initially, but allow the techs to modify it, as it is simply a date field.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:[email protected]

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

  • Author

Argh...

I tried that kurt, and while it works, if the Follow Up Required field is set to "No" I get a question mark (for invalid data) in the Follow Up Date Field. I am using this calculation:

Follow Up Date =

If(Follow Up Required = "Yes", Date Modified + 7,"N/A")

I know this is a small issue but now it's driving me batty!

F.

quote:

Originally posted by Bioboy:

Argh...

I tried that kurt, and while it works, if the Follow Up Required field is set to "No" I get a question mark (for invalid data) in the Follow Up Date Field. I am using this calculation:

Follow Up Date =

If(Follow Up Required = "Yes", Date Modified + 7,"N/A")

You could either make the field a text field, or simply put "" rather than the "N/A" into the field.

The "" is nothing so is considered a valid date, but the "N/A" is not.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:[email protected]

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

Have one field for DateCreated. Another field for FollowupRequired. A new third field for FollowupDateEntry. The FollowupDate calculation would now be:

Case[FollowupRequired = "Yes",

If[isEmpty[FollowupDateEntry], DateCreated + 7, FollowupDateEntry],

""]

If a followup is not required, the date is set to "".

If a followup is needed, the date will be a week after DateCreated unless an entry is made in FollowupDateEntry, in which case that date will be used.

Make sure FollowupDateEntry is validated to check the entry is a correct date.

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.