By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,491 Members | 858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,491 IT Pros & Developers. It's quick & easy.

A Snippet To Determine Whether a Number is Odd or Even

P: n/a
We are a real estate office and I need to create an update query based on our
main property table (which holds all the information about each property in our
town) that will tell me whether a street number is odd or even. Odd or even
tells us which side of the street a property is on. Right now we have an empty
field called "OddEven" and a field called "StreetNumber". Using an update
query, what snippet do I put In the "UpDate" line of the "OddEven" field line
to get what we need? Or am I going about this all wrong? BTW we are using
Access 2000 and the field containing the "StreetNumber" is a "Double". TIA

Nick
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
A number is even if:
[SomeNumber] Mod 2 = 0

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Nick250" <ni*****@aol.com> wrote in message
news:20***************************@mb-m22.aol.com...
We are a real estate office and I need to create an update query based on
our
main property table (which holds all the information about each property
in our
town) that will tell me whether a street number is odd or even. Odd or
even
tells us which side of the street a property is on. Right now we have an
empty
field called "OddEven" and a field called "StreetNumber". Using an update
query, what snippet do I put In the "UpDate" line of the "OddEven" field
line
to get what we need? Or am I going about this all wrong? BTW we are
using
Access 2000 and the field containing the "StreetNumber" is a "Double". TIA

Nick

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.