Question about fitering

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

Guest

In my Clients table I have an autonumber field for Client ID. My boss would
like me to pull 2 seperate reports: 1 with all the odd Client ID numbers
(autonumber) and 1 with all the even Client ID numbers. I have messed around
with filtering and queries and I cannot figure out how to do this.

Is it possible?
 
For Odd numbers

SELECT TableName.*
FROM TableName
WHERE [Client ID] Mod 2=1

For Even numbers

SELECT TableName.*
FROM TableName
WHERE [Client ID] Mod 2=0
 

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

Back
Top