Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to assign date value

Status
Not open for further replies.

mary2003

Programmer
Jun 4, 2003
11
0
0
US
Hi,
I like to assign a date value to one parameter. It's not assigning properly.

Here is the scenario.


I will be getting values of parameters from a URL.


In the above URl application is able to assign department, but not Rec_date. It's bringing up the report with the default value.
I hardcoded the date value in certain format. It didn't workout.

Following the code which sets values for parameters.

Set reportParameters = queryResult.Item(1).PluginInterface("Report").ReportParameters
Set Fields = CreateObject("CrystalReports.Fields")

For Each Parameter in reportParameters
Set myParameter = CreateObject("CrystalReports.ParameterField")
Set Value = CreateObject("CrystalReports.ParameterFieldDiscreteValue")
if ((UCase(Parameter.ParameterName) = "START_DATE")) then
Value.Value = Request.QueryString("Start_Date")
'Value.Value = "Start_Date;date(2003,05,01);true"
end if
Next
' Code for displaying report.


Can you please help me in assigning date.

Thanks in advance.

Mary
 
Hi,
Is it just a typo? you refer to Rec_Date in the url
but test for START_DATE...

[profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top