February 24, 20187 yr Newbies I have a file that contains records that have a beginning date field and a ending date field. My summary report is working, it is breaking as it should and contains subtotals and a grand total. My problem is I want to report records that are between a user entered beginning date and ending date. How do I get those dates and use them to run my subsummary report?
February 24, 20187 yr Create two new global fields UserStartDate and UserEndDate and place them on a layout. Create a script If[not isEmpty(YourTable::UserStartDate) and not IsEmpty(YourTable::UserEndDate)] Set Field[YourTable::EndDate; YourTable::UserEndDate] Set Field[YourTable::StartDate; YourTable::UserStartDate] Set Field[YourTable::UserStartDate; ""] Set Field[YourTable::UserEndDate; ""] Go To Layout["YourSummaryReportLayout"] End if Attach a script trigger OnObjectExit which calls this script to both the UserStartDate and UserEndDate fields on the layout.
Create an account or sign in to comment