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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to choose the min between two dates or fields

Status
Not open for further replies.

ciarra41

Technical User
Sep 11, 2006
116
US
I'm trying to show the min date in another field from two date fields. Both fields are in the table mytable

mytable
dt_date1 dt_date2 min_date
1/2/2002 1/8/2002 1/2/2002
2/6/2007 2/14/2003 2/14/2003
3/25/2009 3/20/2005 3/20/2005
 
min_date: IIf(dt_date1<dt_date2,dt_date1,dt_date2)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top