Results 1 to 2 of 2

Thread: varible easy question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    103

    Question

    this is the 1st time i have started using vb and trying to learn it myself but this question is probally a dumb one
    how do i declare a variable that i want to use the value of it within a procedure in my module.bas file
    im trying to get the value of my varible called email on a form and use that value in my module.bas procedure???? thanks in advance

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    If you're talking about Scope and you want to access it in the Module and Form(s), then declare the variable as Public in the Module, i.e.
    Code:
    Public MyPublicVar As String

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