Re: Dynamic Report Fields
Re: Dynamic Report Fields
You could use an ADO recordset and set the .DataSource property of your report to it. This will bind your selected fields to the report.
To get only certain fields to display in the report nicely, you can either do it from the report design time by making multiple Details sections each with your different setups and show/hide depending on your needs at runtime by passing a parameter and using the selection formula to evaluate it. Or you can use the CR object library to obtain access to the textfield controls and show/hide each depending on the users selections but you will also have to position them too then blindly or noe their positions in the designer.