Results 1 to 2 of 2

Thread: passing a variable's data between forms

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329
    this is probabily very easy but i cant figure it out.

    how do i pass the data in a var between forms?

    here is what i mean (simplified):

    Private Sub Command2_Click()
    Dim a
    a = Text1
    Form2.show
    Unload me
    End sub

    Now form2 is displayed...

    Private Sub Form_Load()
    text2 = a
    End Sub


    how do i get the variable (a) to keep its data after i change the form??

    this was probabily very easy.
    thanks for your time.


  2. #2
    Guest

    Thumbs up Yes it is easy, but not well documented

    Dimension A as either Public or Global in the General section...not in a Sub.Hmmm...not sure about Global that may require a bas module

    Hope it helps

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