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.

Getting info from last record (not sure if this is posted in right area)

Featured Replies

Hi, I am not sure where to post this, so sorry if its wrong. I have a database that have a table for companies, and students. The Students have a portal (from another, third table) which shows what companies they have worked for, the last company on the list is the company they are currently working for. I now want to use the name of the current company they are working for in another layout (a list of students) How do I retrieve the last comapony the student worked for?(Remember that ALL the work history of ALL the students are in one table, but my relationship is set up that only the specific student's working history is displayed in the record) Any ideas?

Look into the Last( ) function

  • 4 weeks later...
  • Author

I cant mangage to get it right using the Last() Function. Could you explain it more cleary please? Any other ideas?

Please check here

and here

and if still unclear, please post and I will try to help

Have a good day!

Edited by Guest

  • 1 month later...
  • Author

Thanks, I got it right! Only bad thing is that I have to use a button with a script to update each and every record (12000 records take a while) Would have been great if the field in the related table updated automatically, but atm this doesnt seem possible with Filemaker, am I right?

I have a field in my database so that it updates automatically- no script/button needed.

My field is in my job table (that is related to contracts table) and the field is named c_display_last_contract

jb:c_display_last_contract= Last (Contract::cn_apptperiod)

and it's unstored so it updates as contracts are added/deleted.

Hope that helps your situation

Have a nice day

  • Author

I tried something similar, but for some reason the fields wont update automatically, It only updates when I use a script with a button.

Can you confirm that the calculated field is unstored?

Toggle the box that says Do Not Store Calculation Results-- Recalculate when needed

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.