Parameter Query using > or <

G

Guest

Hi

I am wanting to create a report that will allow the user to select values of
<$x or >$x or =$x

If I use the criteria >50 in the query itself, it will return all donations
greater than $50, but if I use it as a parameter I get the following error
message - "This expression is typed incorrectly, or it is too complex to be
evaluated"

Looking for advice.

TIA
 
G

Guest

Mybe a better way, but my complicated one is something like

Select * From TableNAme Where
Field1 Like (IIf(Instr([Please select a number],"="),Replace([Please select
a number],"=",""),"*")) And
Field1 > IIf(Instr([Please select a number],">"),Replace([Please select a
number],">",""),-100000000) And
Field1 < IIf(Instr([Please select a number],"<"),Replace([Please select a
number],"<",""),10000000000)

Again, there might be a more simple way, but I tried this method and it works.
The user can enter <>= with the number
 

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