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

VB Report objects and setting properties 1

Status
Not open for further replies.

Hawkster

Programmer
Nov 12, 2001
10
GB
How do I access the properties of say a textbox on a data report from within a form before I show it ?

For a form its very easy... i.e.

frmTest.Label3.Caption = "1234"

But the above doesn't work on report objects ??? What am I doing wrong.
 
After a lil playin i've managed to cume up with a solution.


'*** This line controls the data for any given object
'*** .section(?) refers to the section on the report
'*** .Item(?) refers to the item within that section

Me.Sections(1).Controls.Item(1).Caption = "1234"

'***************************************************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top