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

Recommended Posts

Posted

I am trying to write a calculation to display text "This number has already been used" following a find.

The recordfound count has to be 2 or greater but less than the total record count to display that.

I have a formula

If (get(Foundrecordcount) >1 < get(totalrecordcount) ; "This number has already been used" , "")

and it is not working. Could someone please help clear this up?

Thanks

STan

Posted

Stann,

Update your profile to include your platform, operating system and version of FileMaker. The link is just below your name in blue "profile".

Lee

Posted

I agree the behavior of Get (FoundCount) is odd. It evaluates only at the time that the record is created. To see how the functions behave try pasting the following into a calculated text field:

"Get ( RecordNumber ) = " & Get ( RecordNumber ) &

Posted

I should add that Get (FoundCount) behaves this way in a calculated field, but it works as expected in an "if" statement while running a script, i.e. it returns the current found count.

Posted

Calculations using Get functions such as these, must be unstored in order to update without being forced.

Stan, I'm not sure I understand your purpose. However, each test must be made independently of the other. E.g. 0 < x < 1 has no meaning in FileMaker (at least, not an intuitive one). 0 < x and x < 1, however, does.

Posted

Well, there's no bug with the Get( ) as long as unstored.

The calc should look something like

Get(FoundCount)>2 and Get(FoundCount)<Get(TotalRecordCount)

sorry, French version here at the moment

Hmm... so agreed with Queue hairout.gif

Posted

Umm.. I'm curious about this now. Get (FoundCount) works fine for me if used in a script but does not update if used in the definition of a calculated field, whether it be indexed or not...

Posted

It isn't whether it's indexed; it's whether it's unstored. You have three options regarding field storage: indexed, unindexed, and unstored. Get function calculations must be unstored if you wish them to update automatically, as Status functions were in previous versions. Get(FoundCount) and Get(TotalRecordCount) work just fine if unstored.

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