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

Count odd vs even numbers in a record

Featured Replies

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!

Odd numbers count:

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

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

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

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

:Whistle:

--sd

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

...the even number count would be the difference ( 6- Odd count). Right?

Right

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.