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 5366 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi There,

Sory I have been looking forever, and all I can find is how to add todays date to a current date.

We run a training facility and ever 12 or 36 months thier certification runs out, I have created a formula

If (Attended = 1 ; Date ( Month ( Event Date ) + 36 ; Day ( (Event Date) ) ; Year ( ( Event Date)) ); "")

Attended ; That they attended

Event Date: The day of the Course

36 = months this certification is good for ( I would like to be able to change is say as a varible depending on the course... IE First Aid is good for 36 Months, WHMIS is good for 12 Months, etc.)

And I keep coming up with todays date + 36 Months any help?

Posted

Your formula should work, so the problem must be somewhere else.

36 = months this certification is good for ( I would like to be able to change is say as a varible depending on the course.

If you add a field for the duration, you can use =

Date ( Month ( Event Date ) + Duration ; Day ( (Event Date) ) ; Year ( Event Date ) )

to calculate the expiry date.

Posted

Many Thanks for your help thus far, I have changed my course table to reflect months, not years, which might be my problem, the formula that I am using is

If (Attended = 1 ; Date ( Month ( Event Date + Course Names::Valid Months) ; Day ( (Event Date) ) ; Year ( ( Event Date)) ); "")

Any suggestions

Posted

Absolutely, here is all the info taken out, with 1 course added

because of size 1.1 mb here is the link http://files.me.com/sarmstrongemt/odzw7k

Posted

That's a simple file? I am not going there...

However, I can see that the formula is different than the one in your original post. You now have:

Month ( Event Date + Course Names::Valid Months)

which should be:

Month ( Event Date ) + Course Names::Valid Months

And why is the calculation global?

Posted

Well because the course that the person takes is Maybe for example a Standard First Aid Course (3 Year Expiry) and a CPR course (1 year) Expiry

When I enroll the student, I enroll them in the class, I have a feeling that everyone is getting 3 years.

Do you have a suggestion on how I can simplify this?

Posted

Global fields have the same value for all records in the table.

Do you have a suggestion on how I can simplify this?

Start from scratch? I can't make heads or tails of your file. I believe it could be MUCH simpler, but I am not sure what exactly you are tracking. What is the difference between a course and an event?

Posted

I could start from scratch!!

An event is a course that we put on we usually fall these FA-2010415 (First Aid Course 2010-04-15), among this event we have the opportunity to run 3 simultaneous classes such as Standard First Aid, Emergency First Aid or CPR.

We had an access program that worked good, it was locked so I could not edit things that needed to be edited.

Do you know of a Template, or should I Start with New Tables, etc, and avoid altering the alreday done by FM to fit my needs?

Posted

IMHO, the FMI templates carry a lot of excess baggage - that's why it's preferable to start from scratch. I know the layouts are tempting, but function comes before form. I also suggest you think very carefully about the structure before creating anything.

Another point: make sure all your tables have a unique ID field (e.g. CourseID, EventID, etc.) with auto-entered serial number, and use these for your relationships instead of names or any other meaningful data.

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