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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Reports

Status
Not open for further replies.

smash81

Programmer
Mar 12, 2001
88
0
0
KE
Hi,
I would like to know how to enable a user to create a report by passing parameters at run-time.I need this for data reports(VB6).
Any Help?
 
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top