"pair odd" function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a numeric field.
I would like to know wether there is a function that allows me to know
wether a number is pair or odd.
 
To me the opposite of ODD is EVEN. Can you define "Pair" for me?
If you mean Odd & Even then you can use MOD 2 as below.
IIF([YourNumberField] Mod 2 >0, "Odd", "Even")
 
Sorry I meant even ( As you can imagine I'm spanish ).
Karl thanks a lot.Worked perfect.

Thanks again for your help

KARL DEWEY said:
To me the opposite of ODD is EVEN. Can you define "Pair" for me?
If you mean Odd & Even then you can use MOD 2 as below.
IIF([YourNumberField] Mod 2 >0, "Odd", "Even")
--
KARL DEWEY
Build a little - Test a little


Toño said:
I have a numeric field.
I would like to know wether there is a function that allows me to know
wether a number is pair or odd.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top