Dec 6, 2002 #1 dido Programmer Joined Sep 27, 2002 Messages 9 Location 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?
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?
Dec 6, 2002 #2 synapsevampire Programmer Joined Mar 23, 2002 Messages 20,180 Location US 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 http://www.informeddatadecisions.comkai@informeddatadecisions.com Upvote 0 Downvote
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 http://www.informeddatadecisions.comkai@informeddatadecisions.com
Dec 6, 2002 Thread starter #3 dido Programmer Joined Sep 27, 2002 Messages 9 Location GB Thanks a lot I'll give it a go. Upvote 0 Downvote