Hi all,
(CR 9.0 , MS SQL Server 2k)
I have a stored procedure that is the datasource of a subreport. THis datasource used to sum amounts for cash, checks, Mastercard and Visa. I have to change it to lump all the credit cards in as a single sum. I changed the SP to do this, but the field I assigned to this funtion in the SP will not show up as a database field in my report explorer. Here is that part of the original SP:
..........................
I edited the SP to the following:
I should be seeing the field "creditcard" in the database section of my report explorer, but I cannot. Is there something I have forgotten to do? Thanks !
(CR 9.0 , MS SQL Server 2k)
I have a stored procedure that is the datasource of a subreport. THis datasource used to sum amounts for cash, checks, Mastercard and Visa. I have to change it to lump all the credit cards in as a single sum. I changed the SP to do this, but the field I assigned to this funtion in the SP will not show up as a database field in my report explorer. Here is that part of the original SP:
Code:
select distinct ep1.eventid as 'eventid', e.event,
(select sum(ep.amount) from live.dbo.eventpaid ep where ep.paymethod = 'A' and ep.eventid = ep1.eventid ) as 'cash',
(select sum(ep.amount) from live.dbo.eventpaid ep where ep.paymethod = 'B' and ep.eventid = ep1.eventid ) as 'check',
(select sum(ep.amount) from live.dbo.eventpaid ep where ep.paymethod = 'C' and ep.eventid = ep1.eventid ) as 'mc',
(select sum(ep.amount) from live.dbo.eventpaid ep where ep.paymethod = 'D' and ep.eventid = ep1.eventid ) as 'visa'
from live.dbo.eventpaid ep1, live.dbo.event2 e
I edited the SP to the following:
Code:
select distinct ep1.eventid as 'eventid', e.event,
(select sum(ep.amount) from live.dbo.eventpaid ep where ep.paymethod = 'A' and ep.eventid = ep1.eventid ) as 'cash',
(select sum(ep.amount) from live.dbo.eventpaid ep where ep.paymethod = 'B' and ep.eventid = ep1.eventid ) as 'check',
(select sum(ep.amount) from live.dbo.eventpaid ep where ep.paymethod = 'R' and ep.eventid = ep1.eventid ) as 'creditcard'