Eomonth equivalent in access

Ver101

Board Regular
Joined
Sep 2, 2011
Messages
190
Hi Guys,

Is their a way to know the last day of month for any given date? just like the EOMONTH function in excel?

For Example:

if you a have fieldname of Delivery date - 1/20/2012 you can have an additional fieldname (preferably in query table) lets say closing date that would compute as 1/31/2012.

i hope someone can provide me an answer
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try this:

Closing_Date: DateSerial(Year([Delivery_Date]),Month([Delivery_Date])+1,1)-1
 
Upvote 0
Try this:

Closing_Date: DateSerial(Year([Delivery_Date]),Month([Delivery_Date])+1,1)-1
Joe:

Actually, you don't need the -1 part if you use 0 as the day:

Closing_Date: DateSerial(Year([Delivery_Date]),Month([Delivery_Date])+1,0)
 
Upvote 0
Actually, you don't need the -1 part if you use 0 as the day:

Closing_Date: DateSerial(Year([Delivery_Date]),Month([Delivery_Date])+1,0) <!-- / message --><!-- sig -->
Cool trick, Bob! I'll have to remember that.
I am always for making things shorter/simpler!
:)
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top