I have written a report to show all Purchase Order Lines that have an 'Outstanding Quantity' greater than 0 and an 'Expected Receipt Date' of more than two days ago...
My problem is that I cannot work out the formula to set on the OnInitReport() section to set this date criterion....
Any help is greatly appreciated!!!!!
Aaran
0
Comments
date - 3
and you will get the date you wanted
Example: MESSAGE(FORMAT(161178D-3));
and you'll get 13-11-78
André
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
How would I combine your statement with todays date (rather than hard-coding a date in!)????
TODAY - 3
or
WORKDATE - 3
Example:
SETFILTER(Date Field,'..%1',TODAY - 3);
André
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
Report - OnInitReport()
ExpDate:=(WORKDATE-2)
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com
in the OnPreDataItem trigger:
Setfilter("Expected Receipt Date",'..%1',WORKDATE-2);
My world: Dynamics NAV,SQL and .NET
CEO at Solving Dynamics
http://www.solvingdynamics.com