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

Recommended Posts

Posted

Hopefully someone can help me with this.

I have two tables (Property and Report) related by id number. So one Property has many Reports.

Reports have a creation date field

On the the Property layout, I want to display the number of reports which fit a date range. I have date_start and date_end global fields on the Property layout/table for this purpose.

On the REPORTS table I have the following calculation called MATCH_DATE_RANGE =

If ( creation_date ≥ PROPERTY::date_start and creation_date ≤ PROPERTY::date_end ; "1" ; "" )

So if the creation date falls within the dates specified on the PROPERTY table the result is 1.

I then have a self join based on id in the REPORT table

Finally, in the PROPERTY table i have a calculation called MATCHES =

sum ( REPORTS_SELFJ::MATCH_DATE_RANGE )

This returns the number of reports for any given property that match the date range.

This works fine on a mac with FM 9, but does not work on a PC on using FM 8. The MATCHES field does not update when the dates are changed. It only updates if I go into FILE > MANAGE > DATABASE.

The calc fields are NOT indexed. Going back one record and then forward also does not update. Tried clearing cache and that has no effect.

Am i doing something fundamentally wrong, or should I be using another method to do this?

I've attached an example file, but as i mentioned, it work on a mac with fm9, but not on a pc with fm8 (where it is destined to be used!)

Many thanks

Example.fp7.zip

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