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 / Database Design / July 2006

Tip: Looking for answers? Try searching our database.

Validation part of a date in a table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GeorgieGirl - 22 Jul 2006 21:31 GMT
Is there anyway that I can validate that the day part of an expression is the
last day of that month?  The user can choose any month and year, but I want
the day to always be the last day of that month.  Any help is appreciated.
fredg - 22 Jul 2006 22:11 GMT
> Is there anyway that I can validate that the day part of an expression is the
> last day of that month?  The user can choose any month and year, but I want
> the day to always be the last day of that month.  Any help is appreciated.

To determine the last day of any month:

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

i.e. DateSerial(2006,7+1,0) = 7/31/2006
Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

GeorgieGirl - 23 Jul 2006 01:28 GMT
Thanks for the quick reply, I will try this.

> > Is there anyway that I can validate that the day part of an expression is the
> > last day of that month?  The user can choose any month and year, but I want
[quoted text clipped - 5 lines]
>
> i.e. DateSerial(2006,7+1,0) = 7/31/2006
 
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.