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.

very newbie: sub-summary for latest record

Featured Replies

hello all. i'm trying to do a report to show the latest date (or record) only for each product number. what i did was create a sub-summary based on the product number and tried to sort the date in descending order so that only the records by product number with the latest dates would show. but it's still showing the first records per product number.

what gives? or do i have it all wrong?

thanks guys.

Do your report from the Products table (i.e. the layout of the report is showing records from the Products table). Place any required fields from the related table on the layout. Make sure the relationship is sorted on the related table's side by Date, descending. This will make the latest related record become the first related record, so that's what the related fields will show.

  • Author

got that. i did it as a sub-summ also so that only the last records (latest date) per product will show. worked, but now. . .let me explain.

im working on 2 tables products and transmittals where transmittals shows the records of where the products were sent and their current location. i'd like the report to show where the products are currently at, and the total number of each product.

from the pt of view of products, i could not get the products to summarize and show only the latest date per product record. even if i sort descending. i only get the first record to show (which is the earliest date). but i do get a correct count of the products. i did a calculation field to count product numbers and this is ok from this pt of view.

other way around from the pt of view of transmittals, i get the correct summary where it shows the latest dates per product (where it's currently at), but i could not get it to count the total products correctly. i inserted the summary field to count the product numbers from the products table but it always gives me a count of 1 per product type. remember this is from pt of view of transmittals.

sounds so simple and yet. . .

from the pt of view of products, ... i only get the first record to show (which is the earliest date).

Then your relationship is not sorted the way I suggested. Go to Define Database... Relationships, and double-click the = sign between Products and Transmittals. At the bottom of the Edit Relationship window, you will see two 'Sort records' boxes. Click the one that's under Transmittals and select date, descending.

  • Author

thanks much, comment. it worked. but shouldn't it work equally when being sorted from the records menu?

btw, can anybody recommend a good fm7 book for me?

shouldn't it work equally when being sorted from the records menu?

No. The Sort Records... command under Records sorts records in the found set of the current window. You can open another window and have the records sorted in a different order there.

A relationship ignores found set/s.

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.