CR 10
SQL Server 2000 SP4
I have a report on which I need to placew a subreport. I have a SQL statement that gets the information that I need.
However the problem is that I need to link the GrpID to the main report (Not an issue) so therefore I need to remove the "AND GR.GrpID = 53" part of the query and pass the group ID as a parameter. That is just not working.
Here is the senario. A client (GrpID) selects benefits offered by the compnay. The company has 20 different benefits and any client never selects all 20. The report must show all 20 benefits available and then which ones the client has selected. Therefore the subreport should always return 20 rows, some of which will have a lot of null values.
I have tried the SQL above as a view and I have tried adding the tables to the report.
I can't get the subreport to return more than the number of selected benefits. How can I acomplish what I need to. All suggestions are welcome.
zemp
SQL Server 2000 SP4
I have a report on which I need to placew a subreport. I have a SQL statement that gets the information that I need.
Code:
SELECT GR.GrpID, BE.BenfID, BE.BenfName, BE.BenfOrder, udCarrier.CarrName AS PresentCarrier,
GR.TeminateDate, udCarrier_1.CarrName AS PreviousCarrier, GR.EffectiveDate,
GR.RenewalDate, GR.PolicyNum, GR.StopLossLimit, GR.Manditory,
GR.Inclusions, GR.Exclusions, GR.SpecialAuthOnly, GR.Notes
FROM maGroupBenfLine as GR LEFT OUTER JOIN
udCarrier udCarrier_1 ON GR.Pres_CarrID = udCarrier_1.CarrID LEFT OUTER JOIN
udCarrier ON GR.Prev_CarrID = udCarrier.CarrID RIGHT OUTER JOIN
ofBenefit AS BE ON GR.BenfID = BE.BenfID AND GR.GrpID = 53
ORDER BY BE.BenfOrder
Here is the senario. A client (GrpID) selects benefits offered by the compnay. The company has 20 different benefits and any client never selects all 20. The report must show all 20 benefits available and then which ones the client has selected. Therefore the subreport should always return 20 rows, some of which will have a lot of null values.
I have tried the SQL above as a view and I have tried adding the tables to the report.
I can't get the subreport to return more than the number of selected benefits. How can I acomplish what I need to. All suggestions are welcome.
zemp