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

Date Formula Help

Status
Not open for further replies.

ecugrad

MIS
Apr 17, 2001
191
0
0
US
I'm trying to write what I hope is a simple comparison statement. I have field called ProbEnd (End of Probation). We pay incentive if the employee has completed their probation and compltes other qualifiers. Below is what I'm trying to accomplish
If the ProbEnd date is less than the 15th of the prevous month(current month - 1) than [Salary] Else 0

Using CR 8

Thanks for any help...

 
if {table.probenddate} < dateserial(year({table.probenddate}),month({table.probenddate})-1, 15) then
{table.salary} Else 0

-LB
 
I think you want to use currentdate instead of {table.probenddate}

if {table.probenddate} < dateserial(year(currentdate),month((currentdate})-1, 15) then
{table.salary} Else 0

-LW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top