hi, i create a program with adodc and data, i created an exe file and installer of if, then i install it to other pc, but an error msg appear, there is a problem on my path of adodc to the database, but i was installed it to exact location in my pc. How can i make that the database and adodc1 are still connected even their directory change.? THANKS !


Place the Database in the same folder as the project/application... and wrire this code in form_load..:

Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path _
    & "\MyDB.mdb ;Persist Security Info=False"

change database name accordingly..
bind all the controls, in runtime.. not design time...


Hello You Can use Package and Deployment Wizard to make an Setup.exe for your Project in Vb 6.0 then Make it Sure Your Database Added to Installation.

This article has been dead for over six months. Start a new discussion instead.