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!

May I set control source to lable?

Status
Not open for further replies.

marks416

IS-IT--Management
Oct 24, 2007
39
CA
Hi,

I can set the control source for textbox so the textbox can like to a field in table.May I do this for lable?I can not see the control source property for lable.

Please help me.

Thanks

M
 
A label has a caption property.

Me.ThisLabel.Caption="Hello
 
I need the lable show something from database.is that possible?

Thanks

M
 
Yes, but that's not really what they're for. Why not use a textbox?

Ed Metcalfe.

Please do not feed the trolls.....
 
What is it that you need to show?

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Use a textbox. Set it's Locked property to True so the user can't change it.

By playing around with the Border and other format properties, you can make it look like a label.

OR

In the Form_Current event, set the caption of the Label, ie.

Me.MyLabel.Caption = Nz(Me.FieldName,"")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top