Hi everyone -
I have a query that users export to Excel to be emailed. The query SQL is below:
SELECT tblItems.Customer, tblCustomers.CustomerName, qryAvailableContainers.ReceiptDate, qryAvailableContainers.ReceiptNumber, qryAvailableContainers.ItemCode, tblItems.Description, qryAvailableContainers.LotNumber, qryAvailableContainers.ContainerID, qryAvailableContainers.UOMWeight, Sum(qryAvailableContainers.QtyAvailable) AS OnHandQty
FROM tblCustomers INNER JOIN (qryAvailableContainers INNER JOIN tblItems ON qryAvailableContainers.ItemCode = tblItems.ItemCode) ON tblCustomers.CustomerNumber = tblItems.Customer
GROUP BY tblItems.Customer, tblCustomers.CustomerName, qryAvailableContainers.ReceiptDate, qryAvailableContainers.ReceiptNumber, qryAvailableContainers.ItemCode, tblItems.Description, qryAvailableContainers.LotNumber, qryAvailableContainers.ContainerID, qryAvailableContainers.UOMWeight
HAVING (((tblItems.Customer)=[forms]![frmMenuInventoryReports]![CustomerName]));
The customer would like to see a total quantity and weight at the end of each item code.
I created a report which is grouped by ItemCode and exported that to Excel. The totals show at the end of each item code but they don't like the look of the exported report as much as they do the query.
Is there a way to get the same type of total line at the end of each item code when exporting the query without going in to Excel and manually doing it? The query is too large to do that.
Thank you in advance for your assistance.
I have a query that users export to Excel to be emailed. The query SQL is below:
SELECT tblItems.Customer, tblCustomers.CustomerName, qryAvailableContainers.ReceiptDate, qryAvailableContainers.ReceiptNumber, qryAvailableContainers.ItemCode, tblItems.Description, qryAvailableContainers.LotNumber, qryAvailableContainers.ContainerID, qryAvailableContainers.UOMWeight, Sum(qryAvailableContainers.QtyAvailable) AS OnHandQty
FROM tblCustomers INNER JOIN (qryAvailableContainers INNER JOIN tblItems ON qryAvailableContainers.ItemCode = tblItems.ItemCode) ON tblCustomers.CustomerNumber = tblItems.Customer
GROUP BY tblItems.Customer, tblCustomers.CustomerName, qryAvailableContainers.ReceiptDate, qryAvailableContainers.ReceiptNumber, qryAvailableContainers.ItemCode, tblItems.Description, qryAvailableContainers.LotNumber, qryAvailableContainers.ContainerID, qryAvailableContainers.UOMWeight
HAVING (((tblItems.Customer)=[forms]![frmMenuInventoryReports]![CustomerName]));
The customer would like to see a total quantity and weight at the end of each item code.
I created a report which is grouped by ItemCode and exported that to Excel. The totals show at the end of each item code but they don't like the look of the exported report as much as they do the query.
Is there a way to get the same type of total line at the end of each item code when exporting the query without going in to Excel and manually doing it? The query is too large to do that.
Thank you in advance for your assistance.