I would keep a reference as a private variable to whatever tab is
selected. Then add a function to return the selected tabpage to the
main form so the OK method can reference the values included in that tab
page. I would also include in the tabpage.tag proerty some sort of
identifier so you know which values you are working with, which is what
mehdi mentions. This way, the form with the tabpages keeps control of
its pages, and the main form is provided access to the currently
selected page.
T
Jeff Williams wrote:
I want to use tabs on a form and well as some data fields.
What I want to do is each tab is additional data which needs to be
saved when the Ok button is pressed on the form.
How from the main form OK method can I access the individual data
fields on each tab so that I can use a single SQL statement to update
my data.
Thanks in advance
Jeff