Results 1 to 2 of 2

Thread: Passing Variables through module problem

  1. #1

    Thread Starter
    Addicted Member Smie's Avatar
    Join Date
    Jun 1999
    Location
    Columbus, OH
    Posts
    249

    Post

    Im having a little trouble. I declare a variable in my module:

    Dim W1

    now in one form, I set the variable as say "qwerty" (string). But when I open the next form, and go to load the variable, its blank. What am I doing wrong?(this is my first time making a module to hold variables)

    Thanks

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You need to Dimension the Variable as Pubilc in your Module, ie.

    Public W1 As String

    Then it'll be visible to everything within the Application.


    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


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