A
alex
Set object variable in class module
Hello,
Is it possible to define an object—once—in a class module?
E.g.,
Option Compare Database
Option Explicit
Dim strTable As String
strTable = "tblMyTable" ‘throws error, Invalid outside procedure
I have a table that I’d like to reference throughout code in a class
module… Is there a place within the module where I can define it only
once, instead of in every Sub?
Thanks,
alex
Hello,
Is it possible to define an object—once—in a class module?
E.g.,
Option Compare Database
Option Explicit
Dim strTable As String
strTable = "tblMyTable" ‘throws error, Invalid outside procedure
I have a table that I’d like to reference throughout code in a class
module… Is there a place within the module where I can define it only
once, instead of in every Sub?
Thanks,
alex