Guest_imported
New member
- Jan 1, 1970
- 0
I'm wondering if i can get a little help here
i'm trying to make a report with CR8.5 that will use a MS Data Environment as the Source
however this data environment requires 1 parameter to be able to run its task.
i can send the parameter fine and i checked the DE to make sure it works and it does.
when i go to make the report the report can't be made because of the parameter not defined
sooooo i went to crystal and they said
"The solution is to hard code a value in the SQL when the Command object is first created and create the Report off the Data Environment (DE) as usual. This is so Crystal Reports is able to fire the DE SQL and build the reports data definition file from the returned resultset.
After the report has been created go back to the command object and substitute the hard coded value for a '?' which will recreate the parameter. "
i did what they said and now i made the report....but here is the main problem
now the report will only pull the information that is equal to the parameter hard code value and won't take the information from the DE
example
hard code sql:
select custinfo.* From CustInfo where (Customer = 'none')
the real sql i need to use:
select custinfo.* From CustInfo where (Customer = ?)
? = custinfo
the code in the form to send the parameter
dataenvironment1.connection1.open
dataenvironment1.command1 text1.text
then open the form to view the report
load form2
form2.show
got any ideas please help if you can
i'm trying to make a report with CR8.5 that will use a MS Data Environment as the Source
however this data environment requires 1 parameter to be able to run its task.
i can send the parameter fine and i checked the DE to make sure it works and it does.
when i go to make the report the report can't be made because of the parameter not defined
sooooo i went to crystal and they said
"The solution is to hard code a value in the SQL when the Command object is first created and create the Report off the Data Environment (DE) as usual. This is so Crystal Reports is able to fire the DE SQL and build the reports data definition file from the returned resultset.
After the report has been created go back to the command object and substitute the hard coded value for a '?' which will recreate the parameter. "
i did what they said and now i made the report....but here is the main problem
now the report will only pull the information that is equal to the parameter hard code value and won't take the information from the DE
example
hard code sql:
select custinfo.* From CustInfo where (Customer = 'none')
the real sql i need to use:
select custinfo.* From CustInfo where (Customer = ?)
? = custinfo
the code in the form to send the parameter
dataenvironment1.connection1.open
dataenvironment1.command1 text1.text
then open the form to view the report
load form2
form2.show
got any ideas please help if you can