|
-
Jul 27th, 2000, 08:14 AM
#1
Thread Starter
Addicted Member
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
-
Jul 27th, 2000, 10:16 AM
#2
Lively Member
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.
-
Jul 27th, 2000, 10:53 AM
#3
Thread Starter
Addicted Member
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.
-
Jul 27th, 2000, 12:18 PM
#4
Lively Member
"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".
-
Jul 27th, 2000, 12:21 PM
#5
Thread Starter
Addicted Member
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
|