thermalman
Technical User
Hi,
I am using Crystel Reports XI with a SQL Server 2000 backend.
I want to show All records that are Completed within 30 minutes of the Time Out (SLA)
I have tried using a Formula from FAQ but it keeps coming up with a error that the rest of the text is not part of the beginning text.
I don't know if i have done this correctly but both my fields are Date/Time fields.
I am trying to to show if a call Completed Date/Time is within 30 Minutes of the expected TimeOut (SLA)
Can anybody point me in the right direction
Regards
Thermalman
I am using Crystel Reports XI with a SQL Server 2000 backend.
I want to show All records that are Completed within 30 minutes of the Time Out (SLA)
I have tried using a Formula from FAQ but it keeps coming up with a error that the rest of the text is not part of the beginning text.
Code:
whileprintingrecords
numberVar dur:=datediff("m",{WorkOrders.TimeCompleted},{LoggedCalls.TimeOut});//get the minutes between 2 dates
numberVar hrs;
numberVar min;
numberVar sec;
stringVar hhmmss;
hrs:= Truncate(Truncate(dur/60)/60);
min:= Remainder(Truncate(dur/60),60);
sec:= Remainder (dur,60);
hhmmss:=totext(hrs,"00")+":" +totext(min,"00")+ "" + totext(sec,"00");hhmmss
I am trying to to show if a call Completed Date/Time is within 30 Minutes of the expected TimeOut (SLA)
Can anybody point me in the right direction
Regards
Thermalman