Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Report Heading Question 1

Status
Not open for further replies.

np3il

Programmer
Aug 15, 2002
63
US
Is there a way to add a field to the Page header Section???


Ex.

Report header (Section4)
NOT ok here Variable field
OK Text field


Page Header (Section2)
NOT ok here Variable field
OK Text field


Detail (Section1)
OK here Text & Variable fields

Page Footer (Section3)


Report Footer (Section5)
 
np3il,
I don't believe there is a way to dynamically add a text field. but if just want to set a custom report header why not use a blank label control and then set the caption to what you need on load?

Just a thought
Scoty ::)

"Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
 
Scoty,

Thanks for the suggestion ....

How do I access the label caption at run-time???

np3il B-)
 
With a Datareport called dr1 with a rptLabel in the Header (section4), use:

dr1.Sections(4).Controls("label1").Caption = "HELLO"

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
johnwn,

Thanks for the suggestion ...

I place it in the right place and the trick worked.

I have been trying to get this solved for some time now.

Thanks B-) [idea]
 
Johnwm I tried passing the text from a text box on a form
to the report label but it didn't work out

I have placed the label in the report header (Section 4) & tried to pass the text from a forms text box using

dr1.Sections(4).Controls("label1").Caption = "HELLO"

Kindly guide
 
Johnwm I tried passing the text from a text box on a form
to the report label but it didn't work out

I have placed the label in the report header (Section 4) & tried to pass the text from a forms text box using

dr1.Sections(4).Controls("label1").Caption = "HELLO"

Kindly guide
 
I've just answered this in your thread222-654060. As I suggested earlier please read faq222-2244 regarding posting the same stuff in many threads - I find it a waste of my time and a waste of forum space! Some people may find the practice sufficiently annoying to RedFlag the post!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top