Date query

  • Thread starter Thread starter Dudley
  • Start date Start date
D

Dudley

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
 
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)
 
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...
 
Just what I need. Thanks very much to Rick and John.
Dudley

John W. Vinson said:
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Changing date format 2
Date Brackets as an IIf statement 3
Access 2007 - return maximum date 1
query for dates 2
calculated field 2
Obtain Top Value from Table 9
Custom Grouping 3
Previous Month Query 5

Back
Top