K
kMan
Hello guys 'n' Girls...
Relatively new to VBA+Access. I am trying to declare a public variable in a
form so that subsequent forms can access this variable while the form is
open. This variable needs to be an array (say array of Intergers). This was
my proposal:
Public IntArray(10) As Integer
However, access complains telling me arrays, user defined types, inter alia,
cannot be public members of object modules.... I assume object modules =
forms, reports... (feel free to pull the leash). So what can I do? Is the
only option open for me is to declare these in a Module? (As access hasn't
yet complained)
Thanks a mill
Relatively new to VBA+Access. I am trying to declare a public variable in a
form so that subsequent forms can access this variable while the form is
open. This variable needs to be an array (say array of Intergers). This was
my proposal:
Public IntArray(10) As Integer
However, access complains telling me arrays, user defined types, inter alia,
cannot be public members of object modules.... I assume object modules =
forms, reports... (feel free to pull the leash). So what can I do? Is the
only option open for me is to declare these in a Module? (As access hasn't
yet complained)
Thanks a mill