Indate Timein Outdate Timeout # of Hours Remarks
09/16/08 8:00 AM 09/16/08 6:00 8 VL
09/17/08 8:00 AM 09/17/08 6:00 8 VL
09/18/08 8:15 AM 09/17/08 6:05 8
---------------------------------------------------------
Total no. of Hours 24
Total no. of VL 0
As you can see, this is the format of my Crystal report in my program. The total no of hours is correct but the only problem is the Total no. of VL which is 0 instead of 16.
Here is my code to get the Total no. of VL which the basis for the computation of VL is the VL remarks using the formula fields which i think is wrong because it didn't get the correct result:
shared numbervar totalvl;
whileprintingrecords ;
totalvl := 0;
if {TempDTR_Total.Remarks} ="VL" then
totalvl := cdbl(totalvl) + {TempDtr_Total.TotalTime};
totalvl;
Hoping you could help me regarding this...
Thanks in advance...
09/16/08 8:00 AM 09/16/08 6:00 8 VL
09/17/08 8:00 AM 09/17/08 6:00 8 VL
09/18/08 8:15 AM 09/17/08 6:05 8
---------------------------------------------------------
Total no. of Hours 24
Total no. of VL 0
As you can see, this is the format of my Crystal report in my program. The total no of hours is correct but the only problem is the Total no. of VL which is 0 instead of 16.
Here is my code to get the Total no. of VL which the basis for the computation of VL is the VL remarks using the formula fields which i think is wrong because it didn't get the correct result:
shared numbervar totalvl;
whileprintingrecords ;
totalvl := 0;
if {TempDTR_Total.Remarks} ="VL" then
totalvl := cdbl(totalvl) + {TempDtr_Total.TotalTime};
totalvl;
Hoping you could help me regarding this...
Thanks in advance...