I built a pivot form from the wizard which is based on the sql below. The pivot form brings up totals at the end of each entry and also a grand total at the end. For example, it shows the customers on the left and number of quotes in the middle but there are 2 identifcle rows for each customer (one is labelled with the customer ID and one is labelled 'total'). How do I get rid of this total? Is it something to do with try to group the results by month?? r is it something to do with the fact I have a customer name and custmer ID and sometimes the ID is empty? Any help appreciated.
SELECT DailyQuotes.SalesPerson, DailyQuotes.CustID, DailyQuotes.CustomerName, DailyQuotes.NoOfQuotes, DailyQuotes.QuoteDate FROM DailyQuotes WHERE (((DailyQuotes.QuoteDate) Between [Start Date] And [End Date]));
SELECT DailyQuotes.SalesPerson, DailyQuotes.CustID, DailyQuotes.CustomerName, DailyQuotes.NoOfQuotes, DailyQuotes.QuoteDate FROM DailyQuotes WHERE (((DailyQuotes.QuoteDate) Between [Start Date] And [End Date]));