Greater than, Less than (1 Viewer)

kitty77

Registered User.
Local time
Today, 08:07
Joined
May 27, 2019
Messages
712
What is the best way to state this...

If [field1] is less than 20 and greater than 22 then...

Thanks.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 05:07
Joined
Oct 29, 2018
Messages
21,467
Hi. But that seems impossible. I don't know of any value that is both below 20 and at the same time above 22.
 

vba_php

Forum Troll
Local time
Today, 07:07
Joined
Oct 6, 2019
Messages
2,880
If [field1] is less than 20 and greater than 22 then...
guy is right, Kitty. I think you're trying to ask something else, because you're smart enough to know what is possible and what is not possible. maybe uploading what you've got would help us help you. :p
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 07:07
Joined
Feb 28, 2001
Messages
27,156
Code:
IF NOT ( [Field1] BETWEEN 20 AND 22 ) THEN...

If you are looking for "outliers" (things outside a preferred range), the above might be one way to do it.
 

jdraw

Super Moderator
Staff member
Local time
Today, 08:07
Joined
Jan 23, 2006
Messages
15,377
Kitty,
Please review your requirement.
 

kitty77

Registered User.
Local time
Today, 08:07
Joined
May 27, 2019
Messages
712
Yes, stated that wrong. if the number is outside the range of 20-22 then...
Less than 20 or greater than 22
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 07:07
Joined
Feb 28, 2001
Messages
27,156
Guys, looking for outliers is common practice. My wife is ALWAYS giving me outlier tasks.

Code:
IF NOT ( Thermostat BETWEEN 70 AND 72 ) THEN MakeItSo
 

vba_php

Forum Troll
Local time
Today, 07:07
Joined
Oct 6, 2019
Messages
2,880
Guys, looking for outliers is common practice. My wife is ALWAYS giving me outlier tasks.

Code:
IF NOT ( Thermostat BETWEEN 70 AND 72 ) THEN MakeItSo
classic richard. LOL. mr. fix it, like so many women want.
 

vba_php

Forum Troll
Local time
Today, 07:07
Joined
Oct 6, 2019
Messages
2,880
Yes, stated that wrong. if the number is outside the range of 20-22 then...
Less than 20 or greater than 22
the answer depends on where you are at, Kitty. are you in a form or in a query? the answer is different for both scenarios
 

jdraw

Super Moderator
Staff member
Local time
Today, 08:07
Joined
Jan 23, 2006
Messages
15,377
Outlier tasks == Honey Do List ( I guess it's a cultural thing)
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 07:07
Joined
Feb 28, 2001
Messages
27,156
jdraw, I call them "honey-do" items as well. But I was equating a honey-do to a more general category - the "find the outlier" - which for a chemist is a common-place activity. A big part of experimental and analytical chemistry (my wheelhouse) is determining if a sample is outside the norm.
 

jdraw

Super Moderator
Staff member
Local time
Today, 08:07
Joined
Jan 23, 2006
Messages
15,377
Agree. Honey do may have no bounds🍈
 

Users who are viewing this thread

Top Bottom