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

Date Ranges

Status
Not open for further replies.

trafficstudent

Programmer
Oct 21, 2005
106
US
Below is an equation that i want to preform so that if my users dont select a start or end date it will default and show 01/01/2004 else if my users want to use a start date and end date he can still do so.

Can anyone help me with my formula?


if {?Date Range} = currentdate then
start date= "01/01/2004"
else
{WorkOrder}={?Date Range}
 
You need a formula field, maybe StartFormula with something like
Code:
If @StartParamDate = currentdate
then Date(2004, 1, 1)
else @StartParamDate

Put this in selection, something like
Code:
{WorkOrder} in [@StartFormula to @EndParamDate]


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top