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.

Finding last occurrence of sales

Featured Replies

  • Newbies

I have a database of invoices containing fields showing client name, job title and invoice date. Clients have multiple invoices over the past years. I want to show only the last invoice from each client. How do i do this please?

Thanks

Hi Martbabs and welcome to the forum.

Create a self join relationship based on customer to customer .

Now create a portal that uses records from that self relationship and set the portal to show only 1 row.

Finally set the portal to sort the records by invoice date descending.

This will show you the last invoice for any given customer. If you exclude scroll bars in the portal this is the ONLY invoice you will be able to view. If you include scroll bars you will be able to scroll down to older invoices should they exist

HTH

Phil

  • Author
  • Newbies

hiya

thanks for that - what i really want is one list containing all of the clients with their last invoice date - i want to see who we have worked for in the last two years - this will become our xmas card list - any ideas?

thanks

Edited by Guest

Follow the instructions given by Inky Phil to set up the self join and sort within the relationship rathyer than in the portal.

Set up a layout consisting of the client name and the related field :):invoiceDate from the relationship (no portal) this will show the first record in the relationship which, with the sort specified will be the last invoice date.

  • Author
  • Newbies

thanks again guys

but i need to end up with a list of clients and dates on one record - where the client only appears once with their last invoice date. Unless I've not followed correctly, this still lists all invoices but listed on seperate records

hope you can help

I do hardly ever endorse the use of repeating fields, since they usually becomes addictive to the newbe, that then decides to abuse them all over the place ...I can't caution too much against such practice, but here's actually a place where they come in handy!!!

This is BTW a variation on this: http://www.kevinfrank.com/download/repeating-lookups.zip

--sd

Invoices.zip

Edited by Guest

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.