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 / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Year to Date date restrictor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChuckW - 22 Nov 2005 19:58 GMT
Hi,

I want to create a year to date date restrictor.  Right now for all of my
queries I have used between 1/1/05 and 12/31/05.  I want to create one that
will automatically roll over to the next year raither than changing it to
1/1/06 and 12/31/06.  Can anyone help?

Thanks,
Signature

Chuck W

Rick Brandt - 22 Nov 2005 20:31 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> Thanks,

BETWEEN DateSerial(Year(Date()), 1,1) AND Date()

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

fredg - 22 Nov 2005 21:20 GMT
> Hi,
>
[quoted text clipped - 4 lines]
>
> Thanks,

Where Year([DateField] = Year(Date())
or
Where Format([DateField],"yyyy") = Format(Date(),"yyyy")
or
Where [DateField] Between DateSerial(Year(Date()),1,1) and Date()
or if some of your records are dated into the future of the current
year ...
Where [DateField] Between DateSerial(Year(Date()),1,1) and
DateSerial(Year(Date()),12,31)
Signature

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

 
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.