
Data Report designer and Data Control
Blake,
It has to be an ADO data control if you want to set the Data Source at run
time. Below is an excerpt from the MSDN help file:
Note Two older controls, the Data control and RemoteData control, can be
used as data sources, however you cannot set the DataSource property of
another control or object to either of these controls at run time. For
example, the following code will fail:
Set Text1.DataSource = Data1 ' Will fail! You can't set DataSource at
' run time to an intrinsic Data control.
To use either the Data control or RemoteData control as a data source, you
can set the DataSource property of bound controls at design time only.
--
Regards
Carsten Thomsen
MVP VB
MCSE/VB Programmer & Analyst
PLEASE post ALL replies to the newsgroup(s) so we can all benefit from the
discussion!
Quote:
> Hi,
> In the VB6 help it says a standard vb6 data control can be used as a data
> source for a Data Report designer object.
> Does anyone know how to actually do this? When I try, I get an error
saying
> not a valid data source.
> Thanks for your help,
> Blake