Results 1 to 5 of 5
  1. #1
    agent- is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    45

    Calculate Monday date between 4-10th of month

    Hello,

    First time posting, and i tried searching for this answer, but could not quite find it. I am doing something pretty basic with a report. I am trying to have a date box on the report = the date corresponding to a monday between 4-10th date of the month.



    I have been looking at WeekdayName and various Date functions but have not been able to put it all together in order to find the solution. If you have any idea how to do this, it would be greatly appreciated.

    Thanks,

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    can you explain more on what you need in the report?

  3. #3
    agent- is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    45
    Sorry it might have been pretty confusing. Right now I am just using expressions. I have a box that i need to calculate a date pretty similar to "1st monday in the month" that will change based on the given month. I want this to automatically be the Monday between dates 4-10 of the current month and it will not change until the next month has come.

    I am just using this as a contract based form that has to be done at the same time every month.

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    first monday:
    dd-day(dd)+((12-weekday(dd-day(dd))) mod 7)+4

    dd is any date.

  5. #5
    agent- is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2010
    Posts
    45
    Quote Originally Posted by weekend00 View Post
    first monday:
    dd-day(dd)+((12-weekday(dd-day(dd))) mod 7)+4

    dd is any date.
    thanks a ton man. looks like its working.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to group by month
    By okrobie in forum Queries
    Replies: 4
    Last Post: 06-09-2011, 04:41 AM
  2. Replies: 11
    Last Post: 08-04-2010, 04:26 PM
  3. Replies: 1
    Last Post: 07-27-2010, 09:47 AM
  4. Calculate age from birth date
    By mick in forum Forms
    Replies: 2
    Last Post: 07-03-2010, 04:31 PM
  5. First Weds of Month...
    By dweekley in forum Queries
    Replies: 5
    Last Post: 05-17-2010, 12:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums