[RESOLVED]data reports with unbound controls
I'm working on a project using vb6 with an ado connection to an access db.
I am trying to find some info on creating data reports
without the DE using unbound rptTextBoxes. Unfortunately, any example that I have found is not
helping me understand what I need to do...
I would like to build a report by adding a query to a form
and display the report when I click a button.
If anyone has a bit of time to help me out with a very
simple example, I would definately appreciate it.
Thankx.
Re: data reports with unbound controls
VB Code:
Set DataReport1.DataSource = rsT.DataSource
With DataReport1
With .Sections("Section1").Controls
For i = 1 To .Count
If TypeOf .Item(i) Is RptTextBox Then
.Item(i).DataMember = ""
.Item(i).DataField = rsT.Fields(i).Name
End If
Next i
End With
End With
just got it from "jovsdapogi"
Re: data reports with unbound controls
Thats perfect.
Thanks kulitag.
Re: [RESOLVED]data reports with unbound controls
you're welcome! i give this credit to jovsdapogi!