how do i use > and < in a querry

S

swass2006

how can i use the greater than or less than symbols in a query so that i can
find a certain range of numbers?
 
D

Duane Hookom

Open the query in Design View and find the Criteria row under the
field/column where you want to set the filter. Enter something like

<30
or
or
<="A"
or
Between Date()-30 And Date()
 
F

fredg

how can i use the greater than or less than symbols in a query so that i can
find a certain range of numbers?

To find values between 5 and 10 using < and >
Where YourTable.NumberField > 4 and YourTable.Numberfield <11

To find values between 5 and 9
Where YourTable.NumberField >=5 and YourTable.Numberfield <10

To find values between 6 and 10
Where YourTable.NumberField >5 and YourTable.Numberfield <=10

Of course, to find values between 5 and 10 inclusive, you could simply
use:
Where YourTable.NumberField Between 5 and 10
 

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

Top