Data range Question - Very easy

Benjamin Bolduc

Registered User.
Local time
Yesterday, 19:34
Joined
Jan 4, 2002
Messages
169
Hello,

I get stuck on the simplest things. I need to write an If-Then statment for a report Im working on that establishes a basic data range from .25 to .5

For Example:

If Efficiency < .5 and > .25 then
blahblah
End If

I've tried so many combinations, including Between but I just can't seem to get the format down right.

Can anyone help me out?

Thanks!
Ben
 
Try

If Efficiency Between 0.25 and 0.5 then
what to do
End if
 
Thanks for the reply.

That didn't work though. I got a compile error saying it expected then or goto? Any other ideas?

Thanks!
Ben
 
Actually yeah now that I look back at it that syntax would be wrong.

You could do
If Efficiency < 0.5 and Efficiency >0.25 then

or use
Select Case Efficiency
Case 0.25 to 0.5
what to do?
case else
what to do?
end case
 
I really should have known that. I think I need some more coffee this morning. Thanks for the help! :)
 

Users who are viewing this thread

Back
Top Bottom