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 6414 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Greetings

How does one go about counting the odd vs even numbers in a record. Each record is made up of 6 fields (N1 - N6). How can I calulate the number of odd vs even numbers in each record?

Anyone have a clue?

Thanks a million!

Posted

Odd numbers count:

Mod( n1 ; 2 ) + Mod( n2 ; 2 ) + Mod( n3 ; 2 ) + Mod( n4 ; 2 ) + Mod( n5 ; 2 ) + Mod( n6 ; 2 )

Posted

Then, given that there are six fields, the even number count would be the difference ( 6- Odd count). Right?

Posted

Imagine how much easier this would be if the "numbers" were in separate related records (one record for each number)... :o

Posted

No Vaughan, this thingy should be squeezed into a known metaphor, be it spreadsheet'ish or wordprocessor'ish!

:Whistle:

--sd

Posted

Hey Søren, I'm trying to be *positive* and *helpful* here! :o

I'm in a new job (yeah!) and I've just been asked to make a few changes to a database that has been around for many years... and guess what, it uses repeating fields instead of a relational design too. Gee I hate that!

The repeating fields print onto a letter (with sliding/pring set to remove empty repetitions) but the original designer (sic) chose to only show 6/30 repetitions, and the client has 8 things to print!

If you're gonna do the qwrong thing, at least do it right! LOL

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