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

Recommended Posts

Posted

hi newbie here.

I am creating a solution for my optometry practice. I have a layout which has all the visit data. Prescription, vision, ect. I would like to have a Last visit field which auto-enters the last visit. should I use the getnthrecord function? or is there another way to display this?

-Kevin

Posted

Do you have your visits stored as one record per visit in a Visits table related to the Patients table? If this is your design, GetNthRecord isn't the best choice since it looks at the found set of records. What you want to do is look at the records related to a Patient record and pick the latest one. You could use the Last or Max function in an auto-enter calculation or a regular calculation depending on what you want.

Posted (edited)

yes, visits table related to patient table. Each record is a visit.

How would last or max work? once i create a new visit for a given patient, i'm actually looking for the second from last record. How do I look for only records which match the px_id? Aren't we really getting back to establishing a foundset, and looking at a specific field within the foundset?

-kevin

Edited by Guest

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