You can do it two ways.
1) Create a command object in ado, create the parameters for the command object, get the resultset (with a recordset) and bind the recordset to the data report. First create the report with the specific fields in the report textbox object and type in the field names in the report textbox datafield property. The at run time you bind the recordset to the data report datasource property.
or
2) Create a command object using the data environment. Create the parameters and bind the data environment object to the data report's datasource property and the command object to the data report's datamemeber property; as well as the fields.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.