Solved

Sum of Weekending

Posted on 2014-02-13
2
227 Views
Last Modified: 2014-02-13
Is there a way to give total for the week ending for each week in the Year
Grand total for each week would be put into field [SumOftotalWorkWeek]

I included a Test Database for this scenario.
Table: Copy Of Date_Sales
Query: Query1
WeekEndingTotals.mdb
0
Comment
Question by:ca1358
2 Comments
 
LVL 10

Accepted Solution

by:
Gozreh earned 500 total points
ID: 39856849
Change your Query1 to this
SELECT Max([Copy Of Date_Sales].SalesDate) AS LastDateOfWeek, (DatePart("ww",[SalesDate])) AS WorkWeek, Sum([Copy Of Date_Sales].LoanAmt) AS SumOfLoanAmt
FROM [Copy Of Date_Sales]
GROUP BY (DatePart("ww",[SalesDate]))
ORDER BY Max([Copy Of Date_Sales].SalesDate);

Open in new window

0
 

Author Closing Comment

by:ca1358
ID: 39856892
Thank you very much!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now