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.

Featured Replies

I am trying to write a script with two DB files

file 1 contains zipcodes and post office names

[color:brown][color:orange]file 2 contains a list of members and their zipcode .

I want to create a query using FM7 that totals the number of members in any given zipcode. This total would be a field called total members in file 1. Any suggestions on how I can do this?

Edited by Guest

It's not clear what you're after--are you hoping to store the number of members directly in the zipcode record, or do you just want a report telling you that info?

If the first, you might create an unstored calc field in the zip table with a formula like:

=Count[MembersOnZip::MemberID]

If the second,

Create a report layout based on a table occurrence for the Members. Insert a summary part (leading) for the zipcode overview, and include info about the Zipcode, based on the relationship to Zips (Location name, Zipcode). Insert a summary part (trailing) for the count of Members. You can include member-specific info if you want, or not; if not, you can reduce the Body to nothing.

I'm not looking at FM right now, so this is off the top of my head...

Try the Count() function:

Count ( file 2::MemberID )

  • Author

I have attached the two files to assist in the analysis. I appreciate everyone's help. Ultimately this information will be used in a GIS application with a thematic map so I need a total for each zipcode record so I can color code the map. After I get the values I am saving the file as a DBF iv file

fm7.zip

  • Author

Gees I can't believe it was that simple.

Thanks GUYS!

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.