Data Report designer and Data Control 
Author Message
 Data Report designer and Data Control

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



Thu, 21 Nov 2002 03:00:00 GMT  
 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




Thu, 21 Nov 2002 03:00:00 GMT  
 Data Report designer and Data Control
Thanks for your help Carsten,

What about if I set the Data Source at design time?  Can i then use a data
control as the data source for the report?  If so, how do I do this?

Thanks for your help,

Blake


Quote:
> 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!



> > 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




Fri, 22 Nov 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. data report / data environment designers

2. data report / data environment designers

3. Data Report Designer and Data Environment Problem

4. Data Report Designer and Data Environment

5. Data Designer and a Report Designer.

6. Data Report Designer - Sub Reports

7. Crystal Report vs MS Data Report Designer

8. Ole data in Access database to retrieve in report ( Report Designer 6 + VB 6 )

9. Microsoft Data Report Designer or Crystal Reports

10. Crystal Reports and the New Data report Designer

11. printing without crystal report or data report for non data base reports

12. Data Report Designer - Field Drag and Drop not functioning

 

 
Powered by phpBB® Forum Software