I have a sub, and in it I define 2 variables, and assign 1 of these strings to a text box in a form I've already created.
Sub test()
dim x as string
dim y as string
x = "hello"
y = "friends"
myForm.textbox1.value = x
myForm.show
End sub
Now that the form is active, and the form is soliciting information, and executing other code based on user input, I remember that my string y
is relevant. But I don't need it in a textbox. Which is where I begin to wonder: is there any way that data can be passed to the form so that the form 'can see' activities from the sub test()
without assigning it to an object on the form?