VB6 Data Report designer CHECK MY CODING?? 
Author Message
 VB6 Data Report designer CHECK MY CODING??

Hi mates,
I am using VB6 data report designer in design time. Means i am
manually assigning the data format property and datasource property to a
Data Environment and it works perfect. But when i try to link it to a ADO
object by my code it brings error message like "Data field ("Empty") not
My code is as following:

'Private Sub Command1_Click()
'    Dim Myrpts As MyDatareport
'    Dim cnn As Connection
'    Dim rst As Recordset
'    Set cnn = New Connection
'    Set rst = New Recordset
'    cnn.Open "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security
Info=False;Data Source=c:\abdul\database\cars97.mdb"
'    rst.Open "select * from tblcars", cnn, adOpenForwardOnly,
'    Set Myrpts = New MyDatareport
'    Set Myrpts.DataSource = rst
'    Myrpts.Show
'End Sub

So first of all i want to know whether i can use it with ADO and if so how.
Thanks from your cooperation in advance.


Tue, 24 Jun 2003 19:51:50 GMT  
 [ 1 post ] 

 Relevant Pages 

1. VB6 Data Report Designer?

2. VB6 Data Report Designer

3. VB6 Data Report Designer

4. VB6 Data report designer

5. VB6 data report designer

6. VB6 Data Report Designer - problems exporting to HTML

7. How to use columns with Data Report Designer in VB6

8. VB6 - Data Report designer ???

9. Data Report Designer - vb6

10. VB6 Data Report Designer - Please help!

11. Data Designer and a Report Designer.

12. Help: VB6 Crashes after adding Crystal Report 6.0 Designer report


Powered by phpBB® Forum Software