KozmiKKicK
04-17-2004, 09:23 PM
I am using vb6 right now and I am using the adodc control... The data app runs well under on my computer, but when I install to another computer, it doesn't work, because the database path listed under the connectionstring is wrong. What I thought I could do was:
Private Sub Form_Load()
adoSubstrate.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Data\Database\mycophile.mdb;Persist Security Info=False"
adoSubstrate.RecordSource = "Substrate"
End Sub
But when I execute, it won't work... Is there another way to do this??
Private Sub Form_Load()
adoSubstrate.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Data\Database\mycophile.mdb;Persist Security Info=False"
adoSubstrate.RecordSource = "Substrate"
End Sub
But when I execute, it won't work... Is there another way to do this??