<sorry for thread hijack>

My vb6 application opens the access data base with the vb6 database name property of the Data1 control. How can I change this to open with explicit coding in the vb coding so I can change the path in a single location?

Recommended Answers

All 2 Replies

You can set the same property through code as well.

Place the code somewhere in Form_Load ().

I would opt for the active x option (ado), save the path to a database and call the main connection from there. Do you know how to achieve this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.