jjefferson
Technical User
Was recently upgraded to Access 2003, and wanted to try some new functions. I can get Split and Join to work just fine, but Filter is another story. The system doesn't seem to "recognize" it, in that I don't get the popup argument assistance that I do with Split and Join.
I can get to the help section and it's documented there, but I get a compile error when running.
My offending line reads:
aryNameList() = Filter(aryNameList, vbNull, False)
but VB comes back with "Compile error: Wrong number of arguments or invalid property assignment". I thought this would be a quick way to remove null elements from the array and saw this used in a VB6 situation.
Seems there is also a Filter property and Filter event; perhaps I'm not doing something to let VBA know that I want to utilize the function, and it's getting confused?
Thanks for your advice.
Jim
I can get to the help section and it's documented there, but I get a compile error when running.
My offending line reads:
aryNameList() = Filter(aryNameList, vbNull, False)
but VB comes back with "Compile error: Wrong number of arguments or invalid property assignment". I thought this would be a quick way to remove null elements from the array and saw this used in a VB6 situation.
Seems there is also a Filter property and Filter event; perhaps I'm not doing something to let VBA know that I want to utilize the function, and it's getting confused?
Thanks for your advice.
Jim