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));
0
Comments
DMYTODATE(1,1,YearVar)
This way you can filter on a datefield.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Have you used the debugger on this?