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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text from a form to display it on the report

Status
Not open for further replies.

pingpang

Programmer
Feb 1, 2003
22
0
0
PH
Hi! good day to you!

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.

Hope for a response.

thanks!
 
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.'
 
I've tried it already.... it works~
thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top