If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Date query
Is it possible to create a query field which will yield the last day of the
month in the year following a specified date? For example if the date is (British style) 25/10/2009, I would like 31 October 2010. Thanks for any help. Dudley |
#2
|
|||
|
|||
Date query
On Sun, 25 Oct 2009 14:06:01 -0700, Dudley wrote:
Is it possible to create a query field which will yield the last day of the month in the year following a specified date? For example if the date is (British style) 25/10/2009, I would like 31 October 2010. Thanks for any help. Dudley DateSerial(Year(YourSpecifiedDate)+1, Month(YourSpecifiedDate)+1,0) -- Rick Brandt, Microsoft Access MVP Email (as appropriate) to... RBrandt at Hunter dot com |
#3
|
|||
|
|||
Date query
On Sun, 25 Oct 2009 14:06:01 -0700, Dudley
wrote: Is it possible to create a query field which will yield the last day of the month in the year following a specified date? For example if the date is (British style) 25/10/2009, I would like 31 October 2010. Thanks for any help. Dudley Yes: DateSerial(Year([specifieddate]), Month([specifieddate]) + 1, 0) The zeroth day of next month is the last day of this month... -- John W. Vinson [MVP] |
#4
|
|||
|
|||
Date query
Just what I need. Thanks very much to Rick and John.
Dudley "John W. Vinson" wrote: On Sun, 25 Oct 2009 14:06:01 -0700, Dudley wrote: Is it possible to create a query field which will yield the last day of the month in the year following a specified date? For example if the date is (British style) 25/10/2009, I would like 31 October 2010. Thanks for any help. Dudley Yes: DateSerial(Year([specifieddate]), Month([specifieddate]) + 1, 0) The zeroth day of next month is the last day of this month... -- John W. Vinson [MVP] . |
Thread Tools | |
Display Modes | |
|
|