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.

Find Data within DB and Summarize

Featured Replies

Hello!

I have two databases, one is Client info, the other is Billing and Payment info. I want to be able to have a running balance for each client at time of service. If client is seen on 1/1 and is charged $100, but doesn't pay, the balance due is $100. Then when client is seen again on 1/7 and is charged $100 and pays $50, balance due would be $150. This seems like this would be easy enough to do with a GetSummary field, but it doesn't work out that way. I either get the entire client history (future appointments and past appointments) or I get the entire database--all clients' payments and charges--getting added up. How could I go about finding only the client's info and only where the Date is < or = to the date of the current appointment being shown?

Hope this makes sense. Can anyone help/

Thanks!

Corey

Edited by Guest
Typo

One way of doing this is to first relate the Billing and Payment info to a second TO of itself using the field Client ID. The summaries over that relationship then refer to one client only. The second step is to restrict that relationship by date so assuming that the appointment date is part of the Billing and Payment table you add in Date <= Date so that whatever record you are looking at the only related records will be current or past.

The specifics of doing this will depend on the current structure of your solution.

  • Author

I have tried this method. I either get nothing showing up in the field or I get the totalling of all clients again. Here is the calculation I use in setting up te field:

If (Invoicing2::Date ≤ Date and Invoicing2::Client = Client; GetSummary(Total Due;Client))

Does this sound correct or am I missing something? (I'm probably missing something!)

THANKS!

I posted a sample file some time ago that may answer your needs.

http://www.fmforums.com/forum/showtopic.php?tid/105735/post/168811/hl/runningBalance/#168811

Use the last file posted.

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.