Solved

Day count current month

Posted on 2016-10-07
3
28 Views
Last Modified: 2016-10-07
Hello, in the query design, what would I use to show the day count for the current month?  

thank you
0
Comment
Question by:pdvsa
3 Comments
 
LVL 32

Expert Comment

by:Stefan Hoffmann
ID: 41834281
E.g.  
SELECT Day(DateAdd("m",1+DateDiff("m",#1/1/1900#,Now()),#1/1/1900#)-1) AS Expr1;

Open in new window

0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 41834311
Or

Day(DateSerial(Year(Date()), Month(Date()) + 1, 0))
0
 

Author Closing Comment

by:pdvsa
ID: 41834331
Thank you Dale...:)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

21 Experts available now in Live!

Get 1:1 Help Now