Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change YearToDate start Date

Status
Not open for further replies.

dido

Programmer
Sep 27, 2002
9
GB
Does anyone know if it is possible and if so how to change the start date for the YearToDate function.

Say for example the year started on 1/03/02 how would one include any yearToDate records but only from 01/03/02 e.g. for a financial year?
 
Easy enough to write your own:

In the record selection criteria use:

{MyTable.MyDateField} >= cdate("01/03/2002")

This assumes that the date field would not contain any dates beyond today, if it does:

({MyTable.MyDateField} >= cdate("01/03/2002")
and
{MyTable.MyDateField} <= currentdate)

-k kai@informeddatadecisions.com
 
Thanks a lot I'll give it a go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top