I am using Vr8.5
I am trying to amend a report previously written by someone else to show a particular date range.
The problem begins when the parameter asks for a date range ie From Date and To Date. The parameter has set the date value as a string. If I change the field value to date and set the default values, the formula @fromdate and @todate shows an error saying a string is required. The formula is
if not isnull({?fromdate}) then (
numberVar year1 := Val (left({?fromdate},4));
numberVar month1 :=Val (mid({?fromdate},5,2));
numberVar day1 := Val (right({?fromdate},2));
Date(year1,month1,day1) )
else Date(0,0,0)
If I leave the parameter settings as a string and enter the date ranges as from 20030501 to 20030531 (month of May) the report displays the entire history which covers a 6 month period.
how can i display the month of May only?
thank you for your help
I am trying to amend a report previously written by someone else to show a particular date range.
The problem begins when the parameter asks for a date range ie From Date and To Date. The parameter has set the date value as a string. If I change the field value to date and set the default values, the formula @fromdate and @todate shows an error saying a string is required. The formula is
if not isnull({?fromdate}) then (
numberVar year1 := Val (left({?fromdate},4));
numberVar month1 :=Val (mid({?fromdate},5,2));
numberVar day1 := Val (right({?fromdate},2));
Date(year1,month1,day1) )
else Date(0,0,0)
If I leave the parameter settings as a string and enter the date ranges as from 20030501 to 20030531 (month of May) the report displays the entire history which covers a 6 month period.
how can i display the month of May only?
thank you for your help