EOMonth to Query language

  • Thread starter Thread starter lsgKelly
  • Start date Start date
L

lsgKelly

Hi all...I need to convert an EOMONTH statement into an Access Query. The
current formula looks like this:

=EOMONTH(B16,(-1))

B16 now = ProposedEffDate

Is there a function in Access that will do this for me?

Thanks

Kelly
 
DateSerial( YearYouWant, MonthYourWant + 1, 0 )


returns the last of the desired month (and year):


DateSerial( 2008, 3, 0 )


for the last of February 2008, as example. You can see it as one day less
the first of March 2008: DateSerial( 2008, 3, 1) -1, or DateSerial( 2008,
3, 1 - 1).


Vanderghast, Access MVP
 
Hi all...I need to convert an EOMONTH statement into an Access Query. The
current formula looks like this:

=EOMONTH(B16,(-1))

B16 now = ProposedEffDate

Is there a function in Access that will do this for me?

Thanks

Kelly

In Access the last day of any month is the 0 day of the following
month.

=DateSerial(Year([DateField]),Month([DateField])+1,0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top