Hi All
I have a query using the below sql
SELECT DISTINCTROW InternalQuotes.CustomerID, Format$(InternalQuotes.InternalQuoteDate,'mmmm yyyy') AS [InternalQuoteDate By Month], InternalQuotes.InternalQuoteCurrency, Sum(InternalQuotes.InternalQuoteItemsQty) AS [Sum Of InternalQuoteItemsQty], Sum(InternalQuotes.InternalQuoteValue) AS [Sum Of InternalQuoteValue]
FROM InternalQuotes
GROUP BY InternalQuotes.CustomerID, Format$(InternalQuotes.InternalQuoteDate,'mmmm yyyy'), InternalQuotes.InternalQuoteCurrency, Year(InternalQuotes.InternalQuoteDate)*12+DatePart('m',InternalQuotes.InternalQuoteDate)-1
HAVING (((InternalQuotes.CustomerID)=[forms]![frmCustomer]![CustomerID]));
I would like to fix this to show only the previous 12 months from todays date, anyone have any ideas if this is possible? if so how would i go about it??
Thanks
Ali
I have a query using the below sql
SELECT DISTINCTROW InternalQuotes.CustomerID, Format$(InternalQuotes.InternalQuoteDate,'mmmm yyyy') AS [InternalQuoteDate By Month], InternalQuotes.InternalQuoteCurrency, Sum(InternalQuotes.InternalQuoteItemsQty) AS [Sum Of InternalQuoteItemsQty], Sum(InternalQuotes.InternalQuoteValue) AS [Sum Of InternalQuoteValue]
FROM InternalQuotes
GROUP BY InternalQuotes.CustomerID, Format$(InternalQuotes.InternalQuoteDate,'mmmm yyyy'), InternalQuotes.InternalQuoteCurrency, Year(InternalQuotes.InternalQuoteDate)*12+DatePart('m',InternalQuotes.InternalQuoteDate)-1
HAVING (((InternalQuotes.CustomerID)=[forms]![frmCustomer]![CustomerID]));
I would like to fix this to show only the previous 12 months from todays date, anyone have any ideas if this is possible? if so how would i go about it??
Thanks
Ali