Hello,
I would like to know what kind of Data Type I have to declare in order to share the value in a variable between process.
As example the code below:
Public Sub Form_Open(Cancel As Integer)
Dim data As Integer
DoCmd.openform "base"
data = Forms![base].Form![name]
DoCmd.Close
End Sub
Public Sub Command2_Click()
MsgBox ("The number is ") & data
End Sub
Thank you
I would like to know what kind of Data Type I have to declare in order to share the value in a variable between process.
As example the code below:
Public Sub Form_Open(Cancel As Integer)
Dim data As Integer
DoCmd.openform "base"
data = Forms![base].Form![name]
DoCmd.Close
End Sub
Public Sub Command2_Click()
MsgBox ("The number is ") & data
End Sub
Thank you