Jump to content

How in the heck do I make a running count...


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

Recommended Posts

  • Newbies

I am a band director and I have a simple database set up with my potential beginners. One of the fields I have made for each record is their instrument selection (what I have decided they can play) but I need to keep a running total of how many Flutes I have chosen. How do I define a field that will return the result of how many times I have the string "Flute" in the instrument selection field. I want to see this running total on each record.

Thanks!!!

Link to comment
Share on other sites

There are quite a few ways. A simple one is to create a layout with a header, subsummary when sorted by instrument and a footer. Also create a new summary field defined as "Count of" the field Instrument. Place the fields "Instrument" and the new Summary field on the layout. Sort by instrument and enter preview mode.

Another approach use two files. One would hold the instrument type with a relationship based upon the field "Instrument" to your current file. A calculation field "Total" is created in this new file defined as "Count(Relationship::Instrument)".

-bd

Link to comment
Share on other sites

Okay, I'm doing this too now (chose self-joing relationship), with different data, and I'm trying to display the tallies in a report, with the desired field and the count field. However, I want to get a layout where I'm not seeing the repetitions of the occurences of a particular piece of data in the field. Using the above example, I don't want it to say "Flute" 10 times and then "Tuba" 10 times, but just "Flute" "10". Any advice?

Thanks

Bevin

Link to comment
Share on other sites

This topic is 8466 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.