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

How do I display a TextBox Value, within a Label

Status
Not open for further replies.

supanoods

Programmer
Jun 6, 2002
68
GB
This must have been covered before - but I cant see it anywhere.

I have a textbox (DepotName), and is hided. In the title of the form (label), I would like to display something like:
"DEPOT CHOSEN: ("DepotName.Value")"

Can anyone help

Cheers, Supanoods B-)

"If it aint broke - dont fix it!
 
You can use the Caption property of the label. For example:

Code:
Private Sub Form_Current()
Me.lblLabel.Caption = "Depot Chosen: " & Me.txtDepot
End Sub
 
OK - Thanks for the tip.

I had to use an entry from another for (POPUP), so I got round it in the end; heres the code for interest:

Code:
Forms!frmSearchData!TitleLabel.Caption = "Remidial Update Screen for " & DepotName.Value

Thanks again!

Cheers, Supanoods B-)
"If it aint broke - dont fix it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top