M
Michael
Hi,
I have a form with a text box, and I've set the control source to the
result of a function I have written. One of the parameters of the
function is a variant which should contain an array, to get this
variant I call another function i.e. the control source of the text
box is in the following format:
=MyFunction(Param1, Param2, FunctionToGetParam3Variant)
The problem is when previewing the form, the control just displays
#Error. I'm sure its not a problem with either function - they both
have all the necessary error handling and when I call them from other
places within the script they work fine. Also when I replace the
function call for the variant parameter (FunctionToGetParam3Variant)
with a test value i.e. NULL, the main function (MyFunction) gets
called fine. As it is at the moment when I put break points in the
code in the main function, it doesn't get called at all. It looks like
the problem lies with returning a variant to the form and then using
that to pass to MyFunction. Does anyone have any futhers ideas why
this error is occuring or anyone know how I can find out where it is
occuring?
I hope my description makes sense!
Thanks
Michael
I have a form with a text box, and I've set the control source to the
result of a function I have written. One of the parameters of the
function is a variant which should contain an array, to get this
variant I call another function i.e. the control source of the text
box is in the following format:
=MyFunction(Param1, Param2, FunctionToGetParam3Variant)
The problem is when previewing the form, the control just displays
#Error. I'm sure its not a problem with either function - they both
have all the necessary error handling and when I call them from other
places within the script they work fine. Also when I replace the
function call for the variant parameter (FunctionToGetParam3Variant)
with a test value i.e. NULL, the main function (MyFunction) gets
called fine. As it is at the moment when I put break points in the
code in the main function, it doesn't get called at all. It looks like
the problem lies with returning a variant to the form and then using
that to pass to MyFunction. Does anyone have any futhers ideas why
this error is occuring or anyone know how I can find out where it is
occuring?
I hope my description makes sense!
Thanks
Michael