With Access 2007 - I am taking special care to construct an area of an application such that the classes and forms will work for multiple different same DB schema tables. This is for the administrative interface of look-up / pick list fields in this application. Thus the reason that the DB schema is the same for multiple different tables.
At one spot of the code, I need to provide the ID value from DB record located in a DB table class object. "Oops, can't hard code that!" Otherwise the code is not portable across the tables.
Is there some way in VBA to point to a class object from a different static variable name, such that I may type in that static name (pointer), and what ever object the pointer is pointing at actually receives the events? If so, I could use a Select Case statement to handle the various different class objects which the form is capable of supporting.
Suggestions how to pointer in VBA...???
Oh.. on the receiving side of the Class Method, I do receive the object ByRef. So I suppose I could simply list all of the various class types supported each in a different Case of the Select... each time typing the correct Class Object for that particular Case as the arg that time to the same class\method being called. hhhhmmm.... I believe that would work. If anyone has other suggestions, please post. Thank you.
At one spot of the code, I need to provide the ID value from DB record located in a DB table class object. "Oops, can't hard code that!" Otherwise the code is not portable across the tables.
Is there some way in VBA to point to a class object from a different static variable name, such that I may type in that static name (pointer), and what ever object the pointer is pointing at actually receives the events? If so, I could use a Select Case statement to handle the various different class objects which the form is capable of supporting.
Suggestions how to pointer in VBA...???
Oh.. on the receiving side of the Class Method, I do receive the object ByRef. So I suppose I could simply list all of the various class types supported each in a different Case of the Select... each time typing the correct Class Object for that particular Case as the arg that time to the same class\method being called. hhhhmmm.... I believe that would work. If anyone has other suggestions, please post. Thank you.