I have a form with two local variable "FromDate" and "ToDate". The action of the form is to run a report (in a new tab using _blank) and the report is filtered on the date range (by getting and using the form date session variables).
All works fine the first time the report is run - the report opens in a new tab.
If you close the report tab and then try and run report again by clicking on "Go" on form, then no records are found as if the date range is invalid. If you refresh the form before calling the report for the second time, all works fine.
What is going on here?