input

A

\Allen Iverson\

How do you write a query which will take input as range criteria? Say, I
want to extract students whose GPA is between an input range. Thanks.
 
M

Michel Walsh

Hi,


Supply the two limits, two parameters, one per limit:

.... WHERE FieldName BETWEEN [param1] AND [param2]


Or you meant something else?



Hoping it may help,
Vanderghast, Access MVP
 
K

Kevin

In the query builder, simply put the following in the
criteria line under GPA: Between [Low] And [High]

The user will be prompted with whatever you have between
the brackets. You can use this same idea for dates or any
other ordered sequence. Just make sure your data types
are set right.

HTH
Kevin
 
A

\Allen Iverson\

Thanks, It works fine.

Michel Walsh said:
Hi,


Supply the two limits, two parameters, one per limit:

... WHERE FieldName BETWEEN [param1] AND [param2]


Or you meant something else?



Hoping it may help,
Vanderghast, Access MVP


"Allen Iverson" said:
How do you write a query which will take input as range criteria? Say, I
want to extract students whose GPA is between an input range. Thanks.
 
A

\Allen Iverson\

Thanks, It works fine.



Kevin said:
In the query builder, simply put the following in the
criteria line under GPA: Between [Low] And [High]

The user will be prompted with whatever you have between
the brackets. You can use this same idea for dates or any
other ordered sequence. Just make sure your data types
are set right.

HTH
Kevin

-----Original Message-----
How do you write a query which will take input as range criteria? Say, I
want to extract students whose GPA is between an input range. Thanks.


.
 

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