Skip to main content
Question

Formula Syntax Error Question

  • November 17, 2021
  • 0 replies
  • 111 views

Hi All,

Here's the formula I thought would work:

todate(max(getfieldvalues(getrecords("{756.EX. '"&[Record ID#]&"'}", "abdc3n4ne"),1)))

The logic is, find all records where fid 756 (related field) in table abdc3n4ne equals the record ID in the table where this formula is, then of those records tell me the values in the Date Created field, then just tell me the most recent of those dates (what I thought the max formula would do) then turn it into just the date.

I'm getting a syntax error. The second ) after the 1 at the end is highlighted yellow and the error box says "Expecting," but that's for the max function, which I didn't think needed a comma.

Thoughts?

------------------------------
Daniel Johnson
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
There is not currently a way to process the returned records to get the max value.  Maybe in the future, but Formula Queries do not support Max at this time.

------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------

  • Registered
  • November 18, 2021
I ran into a similar issue.  Fortunately I already had a relationship between the two tables and the table where I needed the data was the parent table of the relationship.  I created a max summary field in the relationship that returned the value I needed and used "Only summarize records where the following are true to handle the conditions of the query.

------------------------------
Paul Peterson
------------------------------