title: How can I share a variable from sub routine to sub routine?
body: <p>I have a sub routine where I pull in information from a database.  I want to use variables from this sub routine in another sub routine.  I tried making everything public but it doesn't want to be friendly and share.  </p>
  
  <pre><code>Dim strEmail as String
  Public Sub readDB()
  strEmail = "whatever@doohikcy.com"
  End Sub
  
  Public Sub submit_btn(ByVal sender As Object, ByVal e As EventArgs)
  Response.Write(strEmail)
  End Sub
  </code></pre>
  
  <p>The readDB would read the database and set the variables and do whatever it needs to do.  Then when they submit the form it would e-mail the form to whatever the email address was.</p>