form value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ddtpmyra
    Contributor
    • Jun 2008
    • 333

    form value

    Hi,

    I have two forms open at the same time lets call it the form1 and form2. While currently the user working on form2 and form1 is on the background opened I want to captured the value of text on form1. How can I do that using vba code?

    thanks
    DM
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Let's assume that you are working in Form2, and you wish to capture the value in a Text Box on the opened Form1 named txtCapture, and place it in a Text Box in Form2 named txtTest:
    Code:
    Me![txtTest] = Forms!Form1![txtCapture]

    Comment

    • ddtpmyra
      Contributor
      • Jun 2008
      • 333

      #3
      I want it to assign in a variable

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        Originally posted by ddtpmyra
        I want it to assign in a variable
        Code:
        <Your Variable> = Me![txtTest] = Forms!Form1![txtCapture]

        Comment

        Working...