For Group B why not add a Portfolio group above Stock_Name? Can set Detail section as not visible.
If you still want a Group A where stocks are listed alphabetically without regard to portfolio, that would be a separate report which could be a subreport on this main report in report header or footer.
SELECT Stock_Name, Sum(TransactionQuantity) AS SumOfTransactionQuantity
FROM Investments_Purchases_SalesT
GROUP BY Stock_Name
B
Code:
SELECT PortfolioCode, Stock_Name, Sum(TransactionQuantity) AS SumOfTransactionQuantity
FROM Investments_Purchases_SalesT
GROUP BY PortfolioCode, Stock_Name
You will need a report to display the totals per PortfolioCode.
Below is what we have tried without any success, in our Access 2003 report, using Sorting and Grouping, without any success;
A = Group Header / Yes / Keep Together / Whole Group
B = Group Header / Yes / Keep Together / Whole Group
C = Group on / each of the choices
D = Keep Together / each of the choices
But, we still have not been able to have a one-line total for each symbol.
Could you please let us know what we have done incorrectly and your assistance will be appreciated.
Crystal
For Group B why not add a Portfolio group above Stock_Name? Can set Detail section as not visible.
If you still want a Group A where stocks are listed alphabetically without regard to portfolio, that would be a separate report which could be a subreport on this main report in report header or footer.
SELECT Stock_Name, Sum(TransactionQuantity) AS SumOfTransactionQuantity
FROM Investments_Purchases_SalesT
GROUP BY Stock_Name
B
Code:
SELECT PortfolioCode, Stock_Name, Sum(TransactionQuantity) AS SumOfTransactionQuantity
FROM Investments_Purchases_SalesT
GROUP BY PortfolioCode, Stock_Name
You will need a report to display the totals per PortfolioCode.
I had no problem adding a Portfolio group section in report design. Why could you not accomplish? Exactly what did you attempt? My suggestion is unchanged.
This is a the SQL for a query. You can use this SQL as the recordsource of the report. Or make a query with this SQL and use the qeury as recordsource for the report.