Using Between criteria to search query

H

Huskybydezign

I am a realtively new user but have decent experience with forms and queries.
This should be easy for you x-perts.

I have a form called Unit Information that has several text boxes and combo
boxes that are used to search a query. Everything is working fine except
that when I enter a range of values into two text boxes that are supposed to
allow the user to input a range of values to query by, I am getting all
records and not the selected range. If the text boxes are left blank I want
all records to be returned. The text boxes are called SquareFeet1 and
SquareFeet2. Thanks in advance.

My current criteria: Between [Forms]![Unit Query Form]![SquareFeet1] And
[Forms]![Unit Query Form]![SquareFeet2]
 
K

KARL DEWEY

Sounds like you have numbers in a text box and using a range (Between) to
pull records.
For instance if you enter 75 -- 150 you will get these records --
151, 152, 153,... 16, 17, 18, 19, 20, 21, 22,... 30, 31, ... 73,
74,...1511119, 15111120, ... etc.
 

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