Hi All,
Please help me with this problem
I have two fields in my report- Production hours and Scheduled Start Time.
For the first record in the report the scheduled start time field will have the current date time field value ,but for consecutive records it is the sum of Prod-hrs+scheduled start time (of the Previous record).
I tried the following formula
if OnFirstRecord then
{@.CurrDateTime}
else
Previous({@.Schd_Start_Time})+{dpRptCSReport.prod_hrs}
but get the error ' A formula cannot refer to itself, either directly or indirectly'
Can you please suggest a way out??
Thanks in advance
RashmiHi All,
Please help me with this problem
I have two fields in my report- Production hours and Scheduled Start Time.
For the first record in the report the scheduled start time field will have the current date time field value ,but for consecutive records it is the sum of Prod-hrs+scheduled start time (of the Previous record).
I tried the following formula
if OnFirstRecord then
{@.CurrDateTime}
else
Previous({@.Schd_Start_Time})+{dpRptCSReport.prod_hrs}
but get the error ' A formula cannot refer to itself, either directly or indirectly'
Can you please suggest a way out??
Thanks in advance
Rashmi
Please can anyone suggest a solution? Please can you help Madhi?|||If OnFirstRecord = true Then ({@.CurrDateTime}; Global NumberVar Test :=
{@.Schd_Start_Time})+{dpRptCSReport.prod_hrs})
Else Previous({Test});
Global NumberVar Test :=
{@.Schd_Start_Time})+{dpRptCSReport.prod_hrs});|||this formula will help you
change currentdatetime with ur need.
global datetimevar z;
if OnFirstRecord then
(
currentdatetime;
z:=currentdatetime;
)
else
(
z+10;
z:=z+10
)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment