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
Printable View
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
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.
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.
"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".
Thank you It worked!