Solved

Day count current month

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Importing table data from 1 access database to another? 5 35
strange textbox behavior MS Access 9 33
Access query with left expression 5 28
Syntax Error in Query 7 30
This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

943 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

1 Experts available now in Live!

Get 1:1 Help Now