Hi,
I think I know the answer to this, but just in case...
Is it possible to instantiate a class in Access VBA with a parameter?
In C# I can do that
Code:
MyClass ClassObject = New MyClass(myParameter)
Can this be done with an Access class?
I tried adding a parameter in the Class_Initialize event, but that caused a compile error.
Alternatively, I could create an Init method which does take a parameter, then move the setup stuff out of Class_Initialize and put it into the Init method. Then would have to always call the Init method before any other methods.
Thanks...