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.

Counting orders by customers

Featured Replies

  • Newbies

Hello fellow fmforumers!

I manage a database with two tables, one is the customer table, and the other is orders. They are linked together by customer name.

Now, I have setup a search where I can select two dates, and list all orders placed in that date range. That however, gives me a long list of all orders, with the customers name on them.

What I would like is just a list of all customers who placed an order in that time period with an order count next to it. I cannot wrap my head around how to do this, so any help would be appreciated!

I manage a database with two tables, one is the customer table, and the other is orders. They are linked together by customer name.

That is not the way to do it. They should be linked by CustomerID, which is an auto-entered, meaningless, serial number.

Now, I have setup a search where I can select two dates, and list all orders placed in that date range.

Wouldn't you simply enter a date range in an Order Date field?

That however, gives me a long list of all orders, with the customers name on them.

Just gtrr match found set, Orders>Customers.

  • Author
  • Newbies

That is not the way to do it. They should be linked by CustomerID, which is an auto-entered, meaningless, serial number.

Wouldn't you simply enter a date range in an Order Date field?

Just gtrr match found set, Orders>Customers.

I use two drop down calendars to choose the date range, seems to work fine.

How does this work exactly? I added go to related record, match found set, but the list remains the same.

What I would like is just a list of all customers who placed an order in that time period with an order count next to it.

You could sort the found orders by customer (ID) and show them in a layout with a 'sub-summary by customer' part and no body part. Use a summary field to do the counting.

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.