Can someone guide me in writing a query so I can select either all Odd (1,3,5,7..) or even(2,4,6,8...) records from my table. I have a Sr# field with "Autonumber" format.
there is a simpler way in design view of the query.
you can add criteria for tableId as
[tableid]/2 equals 'Like "*.5*"
this returns odd numbers
the logic is odd number/2 is always not an integer.
for even numbers
[tableid]/2 equals 'Not Like ".5"