Katya85S
Programmer
- Jul 19, 2004
- 190
I've declared my 2-dimentional array as
Private arr(x, 12) as Variant
I need it to be accessible by different Subroutines on a form, so i have to declare it in the Declaration part (prior to all the subroutines) of the code page.
This throws an error every time i open the form, press any buttons, or turn to a Design mode.
The error is:
"The expression On Load you entered as the event property setting produced the following error: Variable not defined"
Perhaps it has something to do with "x" parameter of the array, or may be i'm doing it all wrong.
If doing the same declaration inside Subroutine, no errors are throwing. But then i won't be able to access this array's the values from different Sub.
Thank you all in advance.
Private arr(x, 12) as Variant
I need it to be accessible by different Subroutines on a form, so i have to declare it in the Declaration part (prior to all the subroutines) of the code page.
This throws an error every time i open the form, press any buttons, or turn to a Design mode.
The error is:
"The expression On Load you entered as the event property setting produced the following error: Variable not defined"
Perhaps it has something to do with "x" parameter of the array, or may be i'm doing it all wrong.
If doing the same declaration inside Subroutine, no errors are throwing. But then i won't be able to access this array's the values from different Sub.
Thank you all in advance.