G
Guest
I'm modifying someone else's program and trying to speed it up. There is a
CheckSetup procedure that runs when the program loads (called by an autoexec
macro). CheckSetup is stored in a module in which she makes the following
declarations at the module level:
Public mydbase as Database
Public rs as Recordset
Public strSQL as String
However, once she declares these variable as Public, she then declares them
again in other Private Modules and Class modules. Is this necessary and if
not is it inefficient? My thought is that once these variables are declared
here that they do not have to be declared again in any module. Any thoughts
on this would be appreciated!
CheckSetup procedure that runs when the program loads (called by an autoexec
macro). CheckSetup is stored in a module in which she makes the following
declarations at the module level:
Public mydbase as Database
Public rs as Recordset
Public strSQL as String
However, once she declares these variable as Public, she then declares them
again in other Private Modules and Class modules. Is this necessary and if
not is it inefficient? My thought is that once these variables are declared
here that they do not have to be declared again in any module. Any thoughts
on this would be appreciated!