Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using the between operator

Status
Not open for further replies.

monsterman66666

Programmer
Jan 17, 2002
8
0
0
US
I am trying to display 2 sets of data. I one field and I want to be able to say between 1 and 2; Is there any way possible to do accomplish this?


Thank You
 
In a query?


it would be a criteria of

>=1 and <=2.... or >1 and <2
 
yes a query or vba.
Here's my scenario;


The field name is location.

I want to use this as an example.

I want to know FROM location TO location.

thank you
 
Did you try
Where Location between 1 and 2
and it didn't work?
 
Are you asking, how to get the variables from the text boxes into the sql statement? There are many ways to do this depending on what you are comfortable with. Basically, the easiest is to collect the variables on first form and then open the second form with the variables as part of the filter on your recordsource.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top