J
John 3:16
Hello....
Not sure if this is the right newsgroup for this or not.
I'm trying to learn to migrate to using classes and oop.
Instead of referencing a form like
dim i as integer
i = Forms![MyForm].form.tbMyTextBox
docmd.openform("Form2")
Forms![Form2].form.inputparameters = i
How can I build and use a class like.....
dim a as new addr 'addr being a class
a.property1 = somevalue
docmd.openform("Form2")
Forms![Form2].form.inputparameters = a.property1
My problem is maintaing scope from form to form for the class.
Hopefully this description is clear enough for someone to shed
some light on this or point me in the right direction.
thanks,
bob mcclellan
Not sure if this is the right newsgroup for this or not.
I'm trying to learn to migrate to using classes and oop.
Instead of referencing a form like
dim i as integer
i = Forms![MyForm].form.tbMyTextBox
docmd.openform("Form2")
Forms![Form2].form.inputparameters = i
How can I build and use a class like.....
dim a as new addr 'addr being a class
a.property1 = somevalue
docmd.openform("Form2")
Forms![Form2].form.inputparameters = a.property1
My problem is maintaing scope from form to form for the class.
Hopefully this description is clear enough for someone to shed
some light on this or point me in the right direction.
thanks,
bob mcclellan