Sum by month query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table named tblQuotationDollars. The table has the following
columns Quote Number, Date Sent and Sell. I need to create a query that will
sum the sell by month (based on the date sent) where the quote number begins
with QQ in the Quote Number field. I need the query to show all months of
the year. Can anyone help?
 
GerryE said:
I have a table named tblQuotationDollars. The table has the following
columns Quote Number, Date Sent and Sell. I need to create a query that will
sum the sell by month (based on the date sent) where the quote number begins
with QQ in the Quote Number field. I need the query to show all months of
the year. Can anyone help?

Drag each of those three fields into your query. Right click somewhere
in the properties and select Totals. Each of the fields will default to
Group By. Change the Sell field to Sum.

Lastly, you need to make the date field roll up by month. There's more
than one way to do this; here's one: replace the date field name with
the following:

TheMonth: DateSerial(Year(DateSent),Month(DateSent),1)

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top