PDA

Click to See Complete Forum and Search --> : Passing Variable to Another Form


bedowin
Jun 17th, 2005, 02:10 PM
How can I pass a string value into the variable on another form.

Example Setup:

Form XYX
========
Dim strData As String
strData = 123
Forms![ZYX].strLocation = strData

Form ZYX
========
Public strLocation As String

kfcSmitty
Jun 17th, 2005, 02:35 PM
declare the variable in a module as Public

Then set the variable as such


variable = forms![ZYX].textbox1.text