Parameter Queries Using >

L

LiseD

Is it possible to use a parameter query using greater than or less than?

I have a few field with numerical data that often require this but not sure
how to buld this into the query. So far I have just been using the between
from and to.
 
F

fredg

Is it possible to use a parameter query using greater than or less than?

I have a few field with numerical data that often require this but not sure
how to buld this into the query. So far I have just been using the between
from and to.

The Query SQL Where clause would look like this:

Where YourTable.AField Between [From] and [To]

Where YourTable.AField >= [From] and YourTable.AField < = [To]

Either one of those lines, as criteria, will return the same result.
 
L

LiseD

That is not quite what I am looking for.

I ONLY want to use the parameter => not from and to. I already know how to
do this. My question was how to use the greater than and equal to in a
parameter without using from to.

fredg said:
Is it possible to use a parameter query using greater than or less than?

I have a few field with numerical data that often require this but not sure
how to buld this into the query. So far I have just been using the between
from and to.

The Query SQL Where clause would look like this:

Where YourTable.AField Between [From] and [To]

Where YourTable.AField >= [From] and YourTable.AField < = [To]

Either one of those lines, as criteria, will return the same result.
 
F

fredg

That is not quite what I am looking for.

I ONLY want to use the parameter => not from and to. I already know how to
do this. My question was how to use the greater than and equal to in a
parameter without using from to.

fredg said:
Is it possible to use a parameter query using greater than or less than?

I have a few field with numerical data that often require this but not sure
how to buld this into the query. So far I have just been using the between
from and to.

The Query SQL Where clause would look like this:

Where YourTable.AField Between [From] and [To]

Where YourTable.AField >= [From] and YourTable.AField < = [To]

Either one of those lines, as criteria, will return the same result.

So just use >=[From]
You have the =< backwards. It must be >=.

When prompted enter 250 and it will return all values from 250 and
greater.
 

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