Solved

"Week Ending" formula

Posted on 1998-05-08
1
1,038 Views
Last Modified: 2008-07-03
I have a database with a date field, and would like my query to calculate the week ending
date of each record from that date field, but I can't find the formula.

Thanks much,

Michael M Murphree
0
Comment
Question by:SAGEM
1 Comment
 
LVL 18

Accepted Solution

by:
deighton earned 50 total points
ID: 1965179
If you want the week ending to fall on Friday where your daye field is [date_field] then use

[end_week] = [date_field] + (7 - Weekday([date_field],7))

Hope this works
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

896 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