I would like to get a text1.text from a form to display it on the report when I click the show report button. Do you know how to do it? by the way, i'm using data report.
I take it you want the text in the header section of the report.
In the report designer add a Label control (rptLabel1) to the header section
In code use:[tt]
dr1.Sections(1).Controls.Item("rptLabel1".Caption = text1.text
dr1.Show[/tt]
changing dr1 to the name of your Datareport
________________________________________________________________
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.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.