Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6847923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:48:14+00:00 2026-05-27T00:48:14+00:00

I have a problem that i have been whacking my head over. No matter

  • 0

I have a problem that i have been whacking my head over. No matter what day of the week it is I need the date thats 2 mondays ago. For example, if today is tuesday I need the monday before previous. I am using MS access to do this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:48:15+00:00Added an answer on May 27, 2026 at 12:48 am

    I think you can use the Weekday() function @mwolfe02 mentioned, and combine it with the DateAdd() function. In these sample statements, I also used an IIf() function to tell DateAdd how many days to subtract from the starting date.

    ? DateAdd("d", IIf(Weekday(#2011/11/20#, 2) = 1, _
    -14, -6 - Weekday(#2011/11/20#, 2)), #2011/11/20#)
    11/7/2011 
    
    ? DateAdd("d", IIf(Weekday(#2011/11/21#, 2) = 1, _
    -14, -6 - Weekday(#2011/11/21#, 2)), #2011/11/21#)
    11/7/2011 
    
    ? DateAdd("d", IIf(Weekday(#2011/11/22#, 2) = 1, _
    -14, -6 - Weekday(#2011/11/22#, 2)), #2011/11/22#)
    11/14/2011 
    

    See Access’ online help topics for those functions.

    You didn’t indicate whether you want to do this from VBA code or in a query. And you didn’t tell us where the date value comes from. So I can’t give anything more specific.

    Edit: To do this in a query using the current date, try it this way:

    SELECT
        DateAdd("d", IIf(Weekday(Date(), 2) = 1, -14, -6 - Weekday(Date(), 2)), Date())
        AS TwoMondaysAgo;
    

    If you’re running the query from within an Access application session, you could create a less nasty-looking query by building a VBA user-defined function to do the DateAdd computation, and then calling the udf in your query.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem that has been bugging me all day. In my code
I have an odd problem that I've been beating my head into a wall
I have a tricky problem that I've been messing about with for a few
This is a really weird problem that I have been having. When I download
I have been Googling a problem that I have with trying to integrate the
I have been optimizing my website but the one problem that stands in my
I have a problem that has been stumping me for a while, I wrote
I have a problem that has been nagging me for some time now and
I have a problem that has been consuming me for days. I have a
I have a problem that I have been trying to find a solution for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.