ReportingAnalyst
MIS
I am passing a start and end date from ASP to CR 8.5
session("oRpt").RecordSelectionFormula = "{AMP.DateOfPost}>= Date(strStartDate) and {AMP.DateOfPost}<= Date(strEndDate)"
When I do this, I get an error on the browser:
Error Occurred Reading Records: The ) is missing.
In the above formula,
strStartDate and strEndDate are form variables:
'Request for the startDate
strStartDate = Request.form("StartDate")
'Request for the endDate
strEndDate = Request.form("EndDate")
The format in the above form variables are
mm/dd/yyyy
Please suggest how I can rectify this selection formula syntax.
Thanks.
session("oRpt").RecordSelectionFormula = "{AMP.DateOfPost}>= Date(strStartDate) and {AMP.DateOfPost}<= Date(strEndDate)"
When I do this, I get an error on the browser:
Error Occurred Reading Records: The ) is missing.
In the above formula,
strStartDate and strEndDate are form variables:
'Request for the startDate
strStartDate = Request.form("StartDate")
'Request for the endDate
strEndDate = Request.form("EndDate")
The format in the above form variables are
mm/dd/yyyy
Please suggest how I can rectify this selection formula syntax.
Thanks.