Iif Statement

ssworthi

Registered User.
Local time
Today, 00:55
Joined
Jun 9, 2010
Messages
97
I am trying to designate a time status in a query. That everything before 3/28/11 is to be named "Pre" and everying after is to be called "Post".
This is what I have written but all the records say "Post". What am I doing wrong? Thanks so much as always!

Status: IIf([Date]=<3/28/11,"Pre",IIf([Date]>3/28/11,"Post")):confused:
 
you forgot the octothorpes (#) and don't need the other IIF (unless the field can be null).

Status: IIf([Date]=<#03/28/2011#,"Pre","Post"))
progress.gif
 
Thank you so much!
 

Users who are viewing this thread

Back
Top Bottom