Results 1 to 5 of 5

Thread: Data Reports - Easy One

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148
    Howdy!

    Is it possible to print unbound fields using data reports?
    For example: If I have a variable that changes, but is not stored in a database, can I print it in a text box on the report?, If yes!, How?

    Thanx

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    Dallas, TX
    Posts
    89

    Data Reports

    Yes you can. Put a label Control where you want your
    variable to go in the data report. Create a variable on
    your form and in your report routine put this code.
    DR1.Sections("Section2").Controls("lblVariable").Caption = Variable...Section2 is what I used but, you can use whatever section you want.
    ande211
    VB6 SP3

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148
    Thanx, but when I use this

    Private Sub DataReport_Initialize()

    rptFormu.Sections("Section2").Controls("lbl1").Caption ="HELLO"
    End Sub

    I get a "The object lbl1 was not found!"

    I have the lbl1 in the detail section.

  4. #4
    Lively Member
    Join Date
    Jan 2000
    Location
    Dallas, TX
    Posts
    89
    "Section2" isn't the detail section, it's the Page Header section. Section1 is the detail section. if you put the lbl
    in the detail section, then just change "section2" to
    "Section1".
    ande211
    VB6 SP3

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    148
    Thank you It worked!

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