Query Values with < > or =

R

Rillo

I would like to display a form on which the user can enter a value (e.g
$1000) and then select either > < or = from a list box (e.g <$1000)

I want to have a query based on the user's selection.

In the above example, the underlying query would display all items with a
value of less than $1000.

I thought I could enter something like this in the criteria of the query....

[Forms]![Enter Value]![Comparator]&Forms![Enter Value]![Value]

but Access does not seem to like this.

I would appreciate any advice.
 
D

Duane Hookom

You can't do it that way. I generally use a Max and Min text box so your
query criteria can use one, both, or none by entering different values.
 
R

Rillo

Thanks for the help - much appreciated


Duane Hookom said:
You can't do it that way. I generally use a Max and Min text box so your
query criteria can use one, both, or none by entering different values.

--
Duane Hookom
Microsoft Access MVP


Rillo said:
I would like to display a form on which the user can enter a value (e.g
$1000) and then select either > < or = from a list box (e.g <$1000)

I want to have a query based on the user's selection.

In the above example, the underlying query would display all items with a
value of less than $1000.

I thought I could enter something like this in the criteria of the query....

[Forms]![Enter Value]![Comparator]&Forms![Enter Value]![Value]

but Access does not seem to like this.

I would appreciate any advice.
 

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