Greetings: I seem to have slammed into a brick wall... does anyone know a solution?
In my Access 2007 application, I created a custom VBA class. The intent was to have that class be global to this application, shared among the various forms the UI incorporates.
I cannot seem to find a way to pass my custom class object to the next form.
I have found sample code showing VB.net able to do what I want. However the only examples I have found for Access VBA have been to pass individual simple variables, not custom objects.
I was thinking to create a new form, called MAIN, have that create the instance of my custom class, then pass that instance off to the first UI form. That way the real first form would not have to create a new instance when that form is revisited in the course of using the application, and then just replace the new shared object with the copy from the form calling the "main" form. So have the new "main" form be the only place that an instance of the class is created, passed off, and from there the forms pass the object one to the next.
Suggestions?
In my Access 2007 application, I created a custom VBA class. The intent was to have that class be global to this application, shared among the various forms the UI incorporates.
I cannot seem to find a way to pass my custom class object to the next form.
I have found sample code showing VB.net able to do what I want. However the only examples I have found for Access VBA have been to pass individual simple variables, not custom objects.
I was thinking to create a new form, called MAIN, have that create the instance of my custom class, then pass that instance off to the first UI form. That way the real first form would not have to create a new instance when that form is revisited in the course of using the application, and then just replace the new shared object with the copy from the form calling the "main" form. So have the new "main" form be the only place that an instance of the class is created, passed off, and from there the forms pass the object one to the next.
Suggestions?