In the vb form named (frmName)
I created a label named (label1)
I used this code in the command button
Private Sub Command1_Click()
With DataReportApp
.Sections("section4").Controls.Item("label8").Caption = frmName.label1.Caption
End With
DataReportApp.Show
End Sub
in the datareport named (DataReportApp) in the report header (section 4) I creted a label named (label8)
I got this error: Invalid data source
Can anyone help me please?
14-02-2006 at 02:02 AM
|
xtramac Level: Professor Registered: 28-08-2005 Posts: 89
Re: Help with Datareport Invalid Data Source
hello..
i think you need to set the data source of your report.. during design time you can see a property in the property window that says Data Source and you have to set also the Data Member property properly.
for first timers... assign to the data source your active connection and to the data member the recordset that queries your db.. somethin like that..
Thank you very much for your help.
Well, actually I'm not using a DB I'm trying to pass the content of a label caption or a text box from a vb form to the datareport.