The following is the header formula for a report that I wrote that is grouped by a field called "Rep_X_Consolidated.Eqmajor". Everything else on the report displays without error on a change of "Rep_X_Consolidated.Eqmajor", but for some reason this header disappears afyter the first instance. What the heck am I missing?
Stringvar headerx;
if not isnull({RPPortInfo.Name2}) and {Rep_X_Consolidated.IndexName} <> 'S&P 500' then
headerx:= 'Stock Diversification - ' +totext({Rep_X_Consolidated.StockPortfolioName})+' Sectors'+chr(13)+
totext({RPPortInfo.Name})+
totext({RPPortInfo.Name2})
else if isnull({RPPortInfo.Name2}) and {Rep_X_Consolidated.IndexName} <> 'S&P 500' then
headerx:= 'Stock Diversification - ' +totext({Rep_X_Consolidated.StockPortfolioName})+' Sectors'+chr(13)+
totext({RPPortInfo.Name})
else if not isnull({RPPortInfo.Name2}) and {Rep_X_Consolidated.IndexName} = 'S&P 500' then
headerx:= 'Stock Diversification - S&P 500 Sectors - ' +totext({Rep_X_Consolidated.StockPortfolioName})+chr(13)+
totext({RPPortInfo.Name})+
totext({RPPortInfo.Name2})
else
headerx:= 'Stock Diversification - S&P 500 Sectors - ' +totext({Rep_X_Consolidated.StockPortfolioName})+chr(13)+
totext({RPPortInfo.Name});
headerx;
THANKS!!!
Stringvar headerx;
if not isnull({RPPortInfo.Name2}) and {Rep_X_Consolidated.IndexName} <> 'S&P 500' then
headerx:= 'Stock Diversification - ' +totext({Rep_X_Consolidated.StockPortfolioName})+' Sectors'+chr(13)+
totext({RPPortInfo.Name})+
totext({RPPortInfo.Name2})
else if isnull({RPPortInfo.Name2}) and {Rep_X_Consolidated.IndexName} <> 'S&P 500' then
headerx:= 'Stock Diversification - ' +totext({Rep_X_Consolidated.StockPortfolioName})+' Sectors'+chr(13)+
totext({RPPortInfo.Name})
else if not isnull({RPPortInfo.Name2}) and {Rep_X_Consolidated.IndexName} = 'S&P 500' then
headerx:= 'Stock Diversification - S&P 500 Sectors - ' +totext({Rep_X_Consolidated.StockPortfolioName})+chr(13)+
totext({RPPortInfo.Name})+
totext({RPPortInfo.Name2})
else
headerx:= 'Stock Diversification - S&P 500 Sectors - ' +totext({Rep_X_Consolidated.StockPortfolioName})+chr(13)+
totext({RPPortInfo.Name});
headerx;
THANKS!!!