
08-05-2004, 10:36 AM
|
|
Verbose Coder
Retired Moderator * Guru *
|
|
Join Date: Dec 1999
Location: Phoenix, Arizona
Posts: 3,011
|
|
The more "oop correct" way to do it would be to make your QuerySub() public, pass a reference to form1 to your other forms whenever you instantiate them, and then call QuerySub() from from the other forms via the reference back to form1.
Code:
' In some other (sub) form:
frmFormOneReference.QuerySub()
Another approach would be to have a seperate object that models/represents your data and includes the update functionality and pass around references to the data object instead of having the data functionality tied into your form (which is a display/control element, not a data element, per se).
Paul
|
|