Results 1 to 3 of 3

Thread: Simple Q

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    31

    Simple Q

    Hi, Im not that good at VB so apologies if this is a simple question. Im trying to assign the variable value of a textbox to a commandbutton caption on a different form and the code behind the commandbutton will be related to the variable value of a combo box that is related to the textbox. Any clues?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Simple Q

    I'm not completely sure I understand what you are asking, but I'll take a shot. Are you looking for something like this?
    VB Code:
    1. 'on Form1
    2. Form2.Command1.Caption = Text1.Text
    3.  
    4. 'on form2
    5. Private Sub Command1_Click()
    6. Msgbox Form1.Combo1.Text
    7. End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    31

    Re: Simple Q

    Yep that kinda helps thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width