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 / October 2006

Tip: Looking for answers? Try searching our database.

How do I redefine 1st Quarter in Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gemolo - 11 Oct 2006 20:18 GMT
I wish to make the fist Quarter of the year = April 1 to June 30
Klatuu - 12 Oct 2006 15:14 GMT
Here is a formula that will do what you want:
iif(datepart("q",dtmSomeDate)-1 = 0, 4, datepart("q",dtmSomeDate)-1)

> I wish to make the fist Quarter of the year = April 1 to June 30
gemolo - 12 Oct 2006 19:53 GMT
This might be the right formula but where do enter it?
Step by step please.
Thank you.

> Here is a formula that will do what you want:
> iif(datepart("q",dtmSomeDate)-1 = 0, 4, datepart("q",dtmSomeDate)-1)
>
> > I wish to make the fist Quarter of the year = April 1 to June 30
John Vinson - 12 Oct 2006 16:48 GMT
>I wish to make the fist Quarter of the year = April 1 to June 30

You can generate a calculated field for this definition by
timeshifting the date:

DatePart("q", DateAdd("m", -3, [datefield]))

                 John W. Vinson[MVP]
gemolo - 12 Oct 2006 19:56 GMT
This might be the right formula, but where do I enter it?
Step by step please.  Thank you

> >I wish to make the fist Quarter of the year = April 1 to June 30
>
[quoted text clipped - 4 lines]
>
>                   John W. Vinson[MVP]    
John Vinson - 12 Oct 2006 20:34 GMT
>This might be the right formula, but where do I enter it?

I have no idea, because I do not know what YOU want to do with the
value, nor anything about the structure of your table, your form, your
report, or whatever that might be.

                 John W. Vinson[MVP]
 
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.