Results 1 to 4 of 4

Thread: [RESOLVED]data reports with unbound controls

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Location
    Hudson Falls, NY
    Posts
    36

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

  2. #2
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    Re: data reports with unbound controls

    VB Code:
    1. Set DataReport1.DataSource = rsT.DataSource
    2.      With DataReport1
    3.              With .Sections("Section1").Controls
    4.                   For i = 1 To .Count
    5.                        If TypeOf .Item(i) Is RptTextBox Then
    6.                        .Item(i).DataMember = ""
    7.                        .Item(i).DataField = rsT.Fields(i).Name
    8.                        End If
    9.                   Next i
    10.               End With
    11.        End With

    just got it from "jovsdapogi"

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2005
    Location
    Hudson Falls, NY
    Posts
    36

    Re: data reports with unbound controls

    Thats perfect.
    Thanks kulitag.

  4. #4
    Hyperactive Member
    Join Date
    Mar 2005
    Location
    Manila, Philippines
    Posts
    486

    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
  •  



Click Here to Expand Forum to Full Width