Hey guys!
I have a problem, so I'm trying to determine when is the next service date is but I cant find the solution.
I have a table with these fields:ServiceTerm, ServiceDate and NextServiceDate
What I need is to be able to select a service term: Monthly, Bimonthly, Quarterly, Bi quarterly, twice a year, Bi Weekly and Once.
and depending on the selection the next service date would be from their service date.
exp; If Monthly is selected then Next service date will be a month from service date.
I have tried:
But no luck, Can anybody please help!!
I have a problem, so I'm trying to determine when is the next service date is but I cant find the solution.
I have a table with these fields:ServiceTerm, ServiceDate and NextServiceDate
What I need is to be able to select a service term: Monthly, Bimonthly, Quarterly, Bi quarterly, twice a year, Bi Weekly and Once.
and depending on the selection the next service date would be from their service date.
exp; If Monthly is selected then Next service date will be a month from service date.
I have tried:
IIf([ServiceTermID]="Monthly",DateAdd("m",1,[Servicedate]),
IIf([ServiceTermID]="Bimonthly",DateAdd("m",2,[ServiceDate]),
IIf([ServiceTermID]="Biweekly",DateAdd("w",2,[ServiceDate]),
IIf([ServiceTermID]="Quarterly",DateAdd("m",3,[ServiceDate]),
IIf([ServiceTermID]="TwiceYear",DateAdd("m",6,[ServiceDate]),
IIf([ServiceTermID]="Yearly",DateAdd("m",12,[ServiceDate])))))))
IIf([ServiceTermID]="Bimonthly",DateAdd("m",2,[ServiceDate]),
IIf([ServiceTermID]="Biweekly",DateAdd("w",2,[ServiceDate]),
IIf([ServiceTermID]="Quarterly",DateAdd("m",3,[ServiceDate]),
IIf([ServiceTermID]="TwiceYear",DateAdd("m",6,[ServiceDate]),
IIf([ServiceTermID]="Yearly",DateAdd("m",12,[ServiceDate])))))))
But no luck, Can anybody please help!!