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

If-Then-Else help required 1

Status
Not open for further replies.

Mags2010

Technical User
Jun 16, 2010
12
CA
I am working with the following formula & don't know where I am going wrong.

If(DayOfWeek(currentdate)=2)
then
({@IMP Date} = (currentdate-2))
else
{@IMP Date} = (currentdate);
{TRADEPAY.RRProductionCredit}
although the formula works it is not returning the value I need.

My record selection is identified below because I have a daily, MTD & YTD Commissions column:

{TRADES.TradeDate}>=(if(month(currentdate)>10)
then
dateserial(year(currentdate),10,1)
else
dateserial(year(currentdate)-1,10,1))

Any assistance is appreciated
 
If DayOfWeek(currentdate)=2 then
(
if {@IMP Date} = currentdate-2 then
{TRADEPAY.RRProductionCredit}
)
else
(
if {@IMP Date} = currentdate then
{TRADEPAY.RRProductionCredit}
)

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top