CREATEDATETIME Filter Problem

ricky76ricky76 Member Posts: 204
edited 2006-07-19 in Navision Attain
Hi, i was wondering if anyone could help me. I want to be able to give the user the choice of what year to enter in order to give them a summary of that particular year. From the integer they enter into the text box i want to create a datetime and then filter the report on this. Trouble is the field i want to filter on is a date field. I thought i would just create a datetime field on the date field but this has not worked. This is what i have tried but it hasn't worked. Can anyone help me??

SETRANGE(CREATEDATETIME("Posting Date",0T),CREATEDATETIME(DMY2DATE(1,4,IntYear),0T),CREATEDATETIME(DMY2DATE(1,4,IntYearPlus1),0T));

Comments

Sign In or Register to comment.