Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Access: Calculate 2nd Monday in January
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   18 years ago

Q: My amateur association keeps a diary of future events. Some of these are booked as, say, "Saturday in week 23 of each year" or "Second Thursday in May of each year". For a particular year, how do I convert these into dd/mm/yy? -Alan


A: You're going to have to approach each of these on a case-by-case situation, and it's probably going to involve some programming with loops. Microsoft Outlook handles dates like this.

For example, to find the 2nd Monday of January 2008, you'd have to set up a loop like this:

' NumMondays = 0
' d = #1/1/2008#
' While NumMondays < 2
' If Weekday(d) = 2 Then '2=Monday
' NumMondays = NumMondays + 1
' End If
' d = d + 1
' Wend
' d = d - 1
' MsgBox d

When you're done, you should have your 2nd Monday. Of course, you can manipulate the dates to search for any month, or even build this into a function so you can send it a month and year, and all that jazz... but this should get you started.

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Access: Calculate 2nd Monday in January
Get notifications when this page is updated
 
 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/8/2026 6:05:34 PM. PLT: 0s
Keywords: access date dates tips  PermaLink  Access: Calculate 2nd Monday in January