RDO-Control and Connections

I'm using the RDO Control from VB 5.0 Enterprise Edition.
My question is, how I am able to use only one connection for all controls. Now every control creates a connection to the SQL-Server.
Thank you for answering
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Create a module or class module in which you initialize (open) the connection at application start up (Sub Main) and declare a variable to be used thru the application which can be available for all forms (Public var).
Then set the connection for all controls thru code not in their properties at design time!
That way all your controls can and should use the same connection.

Best wishes,

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I take it from your question that you are designing and ocx or something similar

If this is the case then simply give the ocx a property which would be of type rdoConnection and you can then pass the same connection to each control
Marek_AdarAuthor Commented:
Thank you,
I will ty it
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.