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.

Related Record Count Problem

Featured Replies

Hi.

I have a database that has two tables. The first being the client list itself, and a second being of their visits to a store.

Clients have between 0 and many visits recorded in the second table and they are related. When I go to a related record from the client table and there are 1 or more visit records then I can get an accurate count, but if there are no visit records then I get a return FoundCount of the number of client records.

I have been experimenting with errorcodes and the like to try and establish how I can accurately detect zero visit records, but with no luck.

Anybody got a suggestion please?

Greg

Create a calculation field in the Clients table:

Count (VISITS::AnyField)

Assuming VISITS is the relationship, and "AnyField" is any field in the related table.

Make sure you pick a field that cannot be empty - such as Visits::ClientID, for example.

  • Author

Thankyou to you both. That worked well.

Cheers,

Greg

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.