IIf AND

  • Thread starter Thread starter Gringarlow
  • Start date Start date
G

Gringarlow

I want to determine if a field is between two values.
If RecTime is between 1000 and 1200, return Y, otherwire return blank.
Thank You
 
I want to determine if a field is between two values.
If RecTime is between 1000 and 1200, return Y, otherwire return blank.
Thank You

Exp:IIf([RecTime]>=1000 and [RecTime]<=1200,"Y","")
 
Use the following expression.
Assumption: Rectime is a datetime field.

IIF(RecTime Between #10:00:00# and #12:00:00#,"Y",Null)

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
 

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

Back
Top