Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Oct 2004
    Evansville, Indiana, USA
    Thanked 0 Times in 0 Posts

    Label to Text Box (2000)

    Is there a way to retrieve a value from a label on one form and display it is a text box on another form? For example, I have frmA with label lblAccess. lblAccess caption is set to 5. I want to display this label in a text box txtNext on frmB. Is this possible? I know I could do this if the labels on frmA were text boxes instead of labels, but I couldn't figure out how to link a text box to another form like you can a label. Any suggestions are greatly appreciated.

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Sacramento, California, USA
    Thanked 1 Time in 1 Post

    Re: Label to Text Box (2000)

    I'm not sure what you're trying to achieve. Labels are intended to display fixed information that is NOT saved data. Textboxes are used to display/edit data which may or may not be bound to an underlying source. I don't see what you're trying to accomplish by reading a label on another form. If you want to pass a piece of text between forms, create a public module level variable in FormA and refer to it in FormB as FormA.PropertyName, where PropertyName is the name of the variable.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts