Hi,
In Access 2002, Is it possible to pass an array to a function from inside a control?
For example, if you have a VBA function:
can you then have an unbound control on an Access form that passes an array? E.g., set the controlsource to the following:
=MyFunc(Array(" Item1", "Item2"))
I've tried and it seems like you can't, but I wanted to make sure. I'm not sure if the problem is that you can't use the Array() function in a control, or something else. (It seems like you can't use Split() either... is there a list somewhere of VB functions that can't be passed from a control to another function? Or some general rule?)
In Access 2002, Is it possible to pass an array to a function from inside a control?
For example, if you have a VBA function:
Code:
MyFunc(inputArray() as String) as String
=MyFunc(Array(" Item1", "Item2"))
I've tried and it seems like you can't, but I wanted to make sure. I'm not sure if the problem is that you can't use the Array() function in a control, or something else. (It seems like you can't use Split() either... is there a list somewhere of VB functions that can't be passed from a control to another function? Or some general rule?)
Comment