Hi guys,
I'm trying to run a query that would take all the data that got > of a txtbox(txtOH) on my form or = of this same txtbox. The > or = are on an option group (chkOH) with value 1 for > and value 2 for =.
If I try it like this:
IIf([forms]![Main Form Info]![chkOH]=1,>[forms]![Main Form Info]![txtOH],[forms]![Main Form Info]![txtOH])
If I select the value 2, it return me the right data, but when I choose value 1, it only give me the data with 0 in it, even if i want > 2.
But if I only write >[forms]![Main Form Info]![txtOH] in the criteria, then it return me all value that got more then the value I entered in the textbox.
If someone could tell me what i'm doing wrong here, thanks!!!
I'm trying to run a query that would take all the data that got > of a txtbox(txtOH) on my form or = of this same txtbox. The > or = are on an option group (chkOH) with value 1 for > and value 2 for =.
If I try it like this:
IIf([forms]![Main Form Info]![chkOH]=1,>[forms]![Main Form Info]![txtOH],[forms]![Main Form Info]![txtOH])
If I select the value 2, it return me the right data, but when I choose value 1, it only give me the data with 0 in it, even if i want > 2.
But if I only write >[forms]![Main Form Info]![txtOH] in the criteria, then it return me all value that got more then the value I entered in the textbox.
If someone could tell me what i'm doing wrong here, thanks!!!