Y
Yair Sageev
Given an array of variants
Dim myArr()
and a textbox control containing a Date/Time value called "ctrl", passed as
an arg to the function.
The following code stores the *value* of the control, not the control (or
handle to the control)
myArr(0) = ctrl
this array is passed to OpenForm in the OpenArgs parameter.
if you look at ctrl in the locals window, its type is Control/Textbox
However, myArr(0) lists the type of the item as Variant/Date.
I would like to maintain and pass the *handle* to the control itself so that
I don't have to iterate through the forms to find the control based on its
name at a later time.
Is there any way to do this?
Dim myArr()
and a textbox control containing a Date/Time value called "ctrl", passed as
an arg to the function.
The following code stores the *value* of the control, not the control (or
handle to the control)
myArr(0) = ctrl
this array is passed to OpenForm in the OpenArgs parameter.
if you look at ctrl in the locals window, its type is Control/Textbox
However, myArr(0) lists the type of the item as Variant/Date.
I would like to maintain and pass the *handle* to the control itself so that
I don't have to iterate through the forms to find the control based on its
name at a later time.
Is there any way to do this?