Hello,
I hope some experts can let me know the solution for
the following problem.
I have a frmMDI parent form and a child form. I create
an OLEDBConnection object which is connected to
an Access data file. I place this OLEDBConnection
object in the MDI form and make it private. And then
I create a public function to let other forms
to get this connection object. However, when I try
to reference the public function in frmMDI and the
function does not exist in the list.
Then I add a public readonly property for that
frmMDI connection object. But it still can't be
referenced by other forms.
Can someone tell me what steps I miss in making
the connection object to be public to others?
Thanks,
Raymond Lee
I hope some experts can let me know the solution for
the following problem.
I have a frmMDI parent form and a child form. I create
an OLEDBConnection object which is connected to
an Access data file. I place this OLEDBConnection
object in the MDI form and make it private. And then
I create a public function to let other forms
to get this connection object. However, when I try
to reference the public function in frmMDI and the
function does not exist in the list.
Then I add a public readonly property for that
frmMDI connection object. But it still can't be
referenced by other forms.
Can someone tell me what steps I miss in making
the connection object to be public to others?
Thanks,
Raymond Lee