|
-
May 24th, 2005, 04:46 PM
#1
Thread Starter
Member
[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.
Last edited by kaZm; May 25th, 2005 at 11:45 PM.
Reason: resolved
-
May 25th, 2005, 08:48 PM
#2
Hyperactive Member
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"
-
May 25th, 2005, 11:44 PM
#3
Thread Starter
Member
Re: data reports with unbound controls
Thats perfect.
Thanks kulitag.
-
May 25th, 2005, 11:47 PM
#4
Hyperactive Member
Re: [RESOLVED]data reports with unbound controls
you're welcome! i give this credit to jovsdapogi!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|