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.

Previous Record, Different Field?

Featured Replies

Remind me to wash all of your cars or something...for all the help you guys have given me.

I have a field -- Visit Date

I have a field -- Last Visit Date

I would like Last Visit Date to automatically contain the field from 'Visit Date' in the last related record.

more specifically, a patient has a visit. and we want to know when their previous visit was in a field.

i would love to have this as just a calculation field rather than a script...

is it possible?

Thanks so much in advance.

Create selfrelation such that Visit_Date<=Visit_Date and Patient=Patient

Sort your relation(let his name is Patient_Last_Visits) by Visited_Date-descending then your Last_Vist=Clients_Visit::Visit_Date.

If you can not do it. I will help you tomorrow. Be well.

To clarify, the relationship should be

Visits 2::Patient = Visits::Patient AND

Visits 2::Visit_Date < Visits::Visit_Date

You do not want to use <= or the current record's date will be included. You will probably be defining it in the opposite direction, and so will be using > instead of <.

Also, if you sort the relationship as aaa suggests, then you do not need a Last Visit Date field; you can simply put the related Visit_Date field directly on the layout.

  • Author

Thank you guys very very much. i'm working on it as we speak...

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.