Rename label

Duman

New member
Local time
Today, 16:05
Joined
Nov 27, 2002
Messages
6
How can I have a user rename a label on a form without going into "design view"?
 
Duman,

I don't think that you want to rename, just change what
you see.

Me.lblMyLabel.Caption = "New Text"

hth,
Wayne
 
Use an input box and let the user type in the name change for the label.

Code:
Private Sub Command0_Click()
    
    Dim strInput As String
    
    strInput = InputBox(Prompt:="Type your new label name.", Title:="Rename Label")
    Me.lYourLabel.Caption = strInput
    
End Sub
HTH
 

Users who are viewing this thread

Back
Top Bottom