Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Always including Month Year

Status
Not open for further replies.

puforee

Technical User
Oct 6, 2006
741
US
I run a query to feed a spreadsheet. The query sums several columns and groups by month/year. The problem....sometimes there is nothing to sum for a month (no records) but I want to include ALL months in the output. Of course the months with no activity (records) would show zero in all columns.

Right now the query skips the months that have not records in the table. How can I set it up so it will still show all months.

Thanks,
 



hi,

You need another table containing ALL the dates you want, and do an outer join to include all dates from the dae table.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top