BizzyLizzy
Technical User
Hi guys
Hoping someone can help me urgently.
I am using CR 8.5 with an ODBC link to an SQL database.
The report I working on is taking call data from a main table. The report is grouped by Agent ID and then by Date - so far so good. I also have a subreport included in the main report which is built on an stored procedure that pulls details from our phone system (ie how long an agent was logged on for and talk time etc).
The problem I have got is that I can pull the total logged in time PER AGENT into the main report, but I cannot pull in the grand total logged in hours (for all agents). What I have done is this:-
The subreport is placed in Group H1a
Within the subreport I have used the 3 formula method to get the running totals per agent. This is working fine the variable has been pulled through to the main report ok.
I have also created the following -
whileprintingrecords;
shared numbervar TOTALS:=Sum ({CCGETAStatsJan13;1.LOGGEDINTIME});
TOTALS
This displays fine on the subreport, but when I pull it into the Report footer on the main report it is only showing the logged in time for the last agent in the group! I have tried putting it in different places but I still get the same result.
Is this a linking problem? I am linking by Agent ID.
The reason I need to have the totals pulled in as variables is that I need to use them to work out per hourly call rates, sales rates etc!!!!!!!
Please help me - going very rapidly mad here!
Lizzy
Hoping someone can help me urgently.
I am using CR 8.5 with an ODBC link to an SQL database.
The report I working on is taking call data from a main table. The report is grouped by Agent ID and then by Date - so far so good. I also have a subreport included in the main report which is built on an stored procedure that pulls details from our phone system (ie how long an agent was logged on for and talk time etc).
The problem I have got is that I can pull the total logged in time PER AGENT into the main report, but I cannot pull in the grand total logged in hours (for all agents). What I have done is this:-
The subreport is placed in Group H1a
Within the subreport I have used the 3 formula method to get the running totals per agent. This is working fine the variable has been pulled through to the main report ok.
I have also created the following -
whileprintingrecords;
shared numbervar TOTALS:=Sum ({CCGETAStatsJan13;1.LOGGEDINTIME});
TOTALS
This displays fine on the subreport, but when I pull it into the Report footer on the main report it is only showing the logged in time for the last agent in the group! I have tried putting it in different places but I still get the same result.
Is this a linking problem? I am linking by Agent ID.
The reason I need to have the totals pulled in as variables is that I need to use them to work out per hourly call rates, sales rates etc!!!!!!!
Please help me - going very rapidly mad here!
Lizzy