Solved

Day count current month

Posted on 2016-10-07
3
42 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 33

Expert Comment

by:ste5an
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

772 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