I am intrigued to know why the variables are loaded into memory, when the form containing them is downloaded
form1
from2Code:Option Explicit Private Sub Form_Click() Me.Caption = Forms.Count Form2.Mostrar End Sub
the first time value = 0 but then it is always 1Code:Option Explicit Dim value As Long Public Sub Mostrar() Debug.Print value value = 1 Me.Show vbModal End Sub




Reply With Quote