Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

find the last record

Featured Replies

Hi,

I have an ApptTable with number of fields,

such as PtName, PtDOB, ApptDate and etc.

How can I find the last appointment date

that is > 1/1/2008, and each person is

50 and older in the ApptTable?

Appreciate for any help.

Salina

If you are talking about the last appointment date for each patient, then you will need to have either a self join relationship based on patient ID or if the database is in a proper format where the patients are in a seperate table, then you can just create the calc there. Either or, the calc that has the lastest appointment would be Max ( SelfJoin::ApptDate ) or (PatienttoAppointmentTable::ApptDate) whichever setup you have...

Then the find would be >50 for the age >1/1/2008 for the new calc

  • Author

Thanks John for your help. Max function should

work in my case as I have a main table and an

appt table. However, I only know how to use

Set Field and Perform Find to find a set of data.

Set Field doesn't seem to let me put in the max

function. I did some readings in FileMaker

scripting and tried different ways in my script.

There is still no luck to get my script to perform.

I guess I need some more handheld help. Would you

mind and give me an example of a simple script

with the max function?

Thank you very much!

Salina

Are you trying to use the Max() function while you're in Find mode? Because it won't work then, no calculation that depends on data will, as the only data available in Find are globals, or variables. With FileMaker 8.5 you can use the latter. Set your Max() value into a script Variable, using the Set Variable step. Then use that to Set Field during the Find.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.