Skip 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.

Help with Related Records/Lookups....

Featured Replies

  • Newbies

Hello,

I have 2 databses, A and B.

A single record in Database A has several related records in Database B. The key field in Database B is the date.

I want Databse A to display information from the *most recent* corresponding related record in Databse B. What I have done is made lookups in A but right now they are displaying information from the *oldest* related record in B. The script I wrote does a relookup whenever I push a button and I would like the script to get the info from the most recent record in B.

Any thoughts on how to achieve this with Scriptmaker?

Thanks,

Cram

Supercram:

Welcome to the Forums.

Go to your Relationships diagram and double-click on the box (it usually has an "=" in it) in the line showing the relationship in question. Down at the bottom in the resulting dialog box, you can elect to sort the related records. The default is in ascending order, and I believe you want descending order. It can be a bit confusing at first, but a bit of playing around should give you the result you want.

-Stanley

The last function will do what you want. Last ( Relationship::Field)

  • Author
  • Newbies

Thanks guys! This is one of the most helpful forums I've ever posted to.

Cheers,

Cram

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.