Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 7089 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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
Posted

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...

Posted

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

This topic is 7089 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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