Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hello,

I am trying to do a date calculation which requires the date result not to be a weekend.

I work at a school and our database contains all the dates of contact between us and the students (ie. 07/08/2005 Sent Info Package). I would like to have a field which automatically shows me the next contact date. The next contact date is based on the reason for the last contact. So far I have this working perfectly (i.e. if the last reason for contact was an info package the next contact date is three weeks after).

Where I am unsure is I do not want the Next Contact Date to be either a Saturday or Sunday... So... something like "if the last reason for contact was an info package the next contact date is three weeks after but if that date is a saturday or sunday add 2 days"...

Is this possible?

Posted

Thanks for the reply... However I am a little confused by that. This calculation is taking place in the Next Contact Date field, so when I try an add to Next Contact Date within the calculation box it gives me an error saying it would be a circular calculation, which I understand. So where would I put that calculation?

As well... How does it know if the date has been a Saturday or Sunday?

Thank You,

Calantha

Posted

I can't say precisely how you should incorporate this, because I don't see what you have now.

If, for example, your current formula were:

Next Contact Date =

someDate + 21

you would change it into:

someDate + 21 + Choose ( Mod ( someDate + 22 , 7 ) , 2 , 1 )

Posted

Hello, I'm starting to understand by I am still having trouble understanding how it is changing the date based on whether the date is a weekend.

This is an example of what I have in the Next Contact Date field:

Case(Last(Reason For Contact)="Info Package", Last(Contact Date)+21)

Posted

Ok... I stopped asking and just put the equation you suggest in and it works like a charm!!

I looked up the Choose and Mod functions but my math not being top-notch I'm not quite sure how it works.

If you wouldn't mind providing me a brief explanation I would be more than thankful, but only if you have some extra time. Otherwise I am extremely grateful for the equation that works lovely!

Thank you!

Posted

Well, I do have a pager, and you can always email me if I don't respond immediately. B)

This topic is 7104 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.