My Assistant
![]()
Custom Search
|
![]() ![]() |
![]() |
![]() Post#1 | |
Posts: 338 Joined: 27-July 10 ![]() | I'm looking for an easy way to determine how many Sundays are in a given month identified by a date using VBA module. I appreciate your help |
![]() Post#2 | |
Posts: 1,018 Joined: 25-January 16 ![]() | Bing: access vba how many specified days in month Here is one: https://www.brainbell.com/tutorials/ms-offi...n_Any_Month.htm -------------------- Attachments Manager is below the edit post window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression. DEBUG! DEBUG! DEBUG! http://www.cpearson.com/Excel/DebuggingVBA.aspx |
![]() Post#3 | |
![]() UA Admin Posts: 36,181 Joined: 20-June 02 From: Newcastle, WA ![]() | You can adapt one of the functions in this sample Access Relational Database Application on my website to figure out things like this. It uses several date related functions, one of which could be adpated to your needs. -------------------- My Real Name Is George. Grover Park Consulting is where I did business for 20 years. How to Ask a Good Question Beginning SQL Server |
![]() Post#4 | |
Posts: 3,366 Joined: 27-February 09 ![]() | Or use a Calendar table (like you'd find in a data warehouse database design) |
![]() Post#5 | |
Posts: 338 Joined: 27-July 10 ![]() | Thanks, this works great. |
![]() Post#6 | |
Posts: 338 Joined: 27-July 10 ![]() | Thanks, there is a lot of good code to consider for my future. |
![]() Post#7 | |
Posts: 60 Joined: 18-May 05 From: Chatham, Ontario ![]() | -------------------- Rex |
![]()
Custom Search
|
![]() | Search Top Lo-Fi | 11th December 2019 - 08:27 AM |