Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF Date Statement

Status
Not open for further replies.

Noah114

Technical User
Mar 31, 2005
59
US
I have a query that utilizes a dateserial function to display dates as such

12/1/05
1/1/06
2/1/06

I'm trying to build an if statement that would state

=IIF([DATE]=12/1/05,1/1/06,[DATE]) but it stills displays

12/1/05
1/1/06
2/1/06

Any ideas?
 
=IIf([DATE]=#2005-12-01#,#2006-01-01#,[DATE])

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top