I am trying to declare an array as public so that various subs on a form can use it. However, when I enter something like:
Public ARR(4,4) as variant
in the declaration section of the form's code, then try to assign a value to one of the array's items, I get an error message:
...Constants, fixed-length strings, arrays, user-defined types and Declare statements not allowed as Public members of object modules.
I don't understand what the error message means or how to accomplish what I am trying to do. Does anyone have any ideas?
Public ARR(4,4) as variant
in the declaration section of the form's code, then try to assign a value to one of the array's items, I get an error message:
...Constants, fixed-length strings, arrays, user-defined types and Declare statements not allowed as Public members of object modules.
I don't understand what the error message means or how to accomplish what I am trying to do. Does anyone have any ideas?