Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Help With Date Calculation please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Box666 - 29 Nov 2006 17:55 GMT
I have a field that contains a date (say Dte_1) I would like to
introduce a calculated field that would give the date of the last day
of that month. So if

Dte_1= 11/11/2006 then new field would be 30/11/2006
Dte_1= 29/11/2006 then new field would be 30/11/2006
Dte_1= 1/02/2006 then new field would be 28/02/2006

Can anybody help with a formula please.
Douglas J. Steele - 29 Nov 2006 18:02 GMT
Assuming your other date is stored in TheOtherDate, you can use:

Dte_1 = DateSerial(Year(TheOtherDate), Month(TheOtherDate) + 1, 0)

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I have a field that contains a date (say Dte_1) I would like to
> introduce a calculated field that would give the date of the last day
[quoted text clipped - 5 lines]
>
> Can anybody help with a formula please.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.