Results 1 to 3 of 3

Thread: [RESOLVED] Sending Strings

  1. #1

    Thread Starter
    Hyperactive Member Darkened Linux's Avatar
    Join Date
    Jun 2009
    Location
    Canada
    Posts
    296

    Resolved [RESOLVED] Sending Strings

    I have looked around and I can not find what I am looking for. I would like to send a variable from Form1 to Form2. I have found out how to send I text box from form1 to form2,
    Code:
    Form2.TextBox1.Text = Me.TextBox1.Text
    How can I send a var from From1 to From2? Thanks for you help and time.
    [COLOR="Black"]

  2. #2
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    Re: Sending Strings

    Did you tried
    Code:
    msgBox(Form1.VarName)
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: Sending Strings

    Here's a thread on passing data between forms. I believe the part about properties would work for you, but you might also want to consider adding variables to the constructor of the receiving form:

    http://www.vbforums.com/showthread.php?t=466253
    My usual boring signature: Nothing

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