Results 1 to 3 of 3

Thread: Data Report/Environment

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    Data Report/Environment

    Hi!

    I have a project.. And I want to create a data report to it.. (within the same project)
    How would I invoke it?

    Thanks in advance...

  2. #2
    Junior Member
    Join Date
    Jul 2003
    Location
    Taiwan
    Posts
    29
    Hi !
    first of all, you should add a report from project windows by right click the mouse - add - data report, open the report and add some label and textbox by dragging the RptLabel and RptTextBox to you report, once you done that, go back to the function where you let user to print and insert code
    VB Code:
    1. Private Sub cmdPrint_Click()
    2.  
    3.     Set rptReport.DataSource = rsRecordset
    4.  
    5.         With rptReport.Sections("Section2")
    6.             .Controls("lblCompanyName").Caption = "Company Name"
    7.         End With
    8.    
    9.         With rptReport.Sections("Section1")
    10.             .Controls("txtCompanyName").DataField = _
    11.                                        "Field Name of Company in recordset"
    12.         End With
    13.  
    14.  
    15.     rptReport.Show
    16.  
    17. End Sub

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    ...Thanks

    Thanks... again

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