Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access connection object from a MDI form

Status
Not open for further replies.

sony2000

Programmer
Dec 7, 2003
34
HK
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
 
But I think I already set the connection object
to be PUBLIC. It still not accessiable for other
forms.

Raymond
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top