Two text boxes in a form to query values in Between X to Y

LightingMitten

New member
Local time
Today, 05:29
Joined
Jan 20, 2013
Messages
1
Hi. I am trying to set up a form with two text boxes so I can run a query that searches for records with values between a two numbers. I have set up 2 text boxes in the form design, they are named AvgAmt0 and AvgAmt2.

In the query design view I was able to produce the desired results by placing the following in the criteria statement of the field titled "Amount":

Between 10 And 50

Because this worked I tried to use the following to have the query reference the two text boxes on my form:

Between [Forms]![Search]![AvgAmtO] And [Forms]![Search]![AvgAmt2]

but this doesn't work, when I run the query I got the whole range from the Amount field from 1 to 10,000. Does anyone know how to do this?
 

Users who are viewing this thread

Back
Top Bottom