Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
GOOD DAY:

I'm having a adodc problem with my program..
i want a sample vb6 program that adodc connects not only in my computer but also in other computer after I install it..

what i mean is not connecting it to local area i only want to create an installer which my database adodc connects not only in my computer but after i installed it in other computer..

the conflict is

"info.mdb is not a valid path make sure that the path name is spelled correctly and that you are connected to the server on which the file resides." :(


here's my code:

VB
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\" & "info.mdb"
Adodc1.RecordSource = "Table1"
Set DataGrid1.DataSource = Adodc1




>can someone there who can help me with my coding?
>can someone comment on my box for coding of app.path that connects in other PC after I transfer or install it??
>can someone there could help me as soon as possible?



BIG THANKS...
Posted
Updated 27-Jun-12 22:58pm
v3

1 solution

"info.mdb is not a valid path"

That seems fairly easy to resolve, find out where the file is stored and use the full path to refer to it. You may also need to check you are using the full information required in the connection string[^].
 
Share this answer
 
Comments
jonnard 28-Jun-12 5:01am    
Thanks for your answer Sir..

what I want to say with respect is an adodc connection path code that is run-able
in any PC..

BIG THANKS SIR....
Richard MacCutchan 28-Jun-12 5:09am    
According to this MSDN information you are doing the correct thing. Are you sure you have stored the file in the correct place?
jonnard 28-Jun-12 5:17am    
Yes Sir,
but all I want is to create an installer, I know how to create installer but I want to run it correctly and directly without "info.mdb is not a valid path" problem.
sorry for my grammar..
Richard MacCutchan 28-Jun-12 6:06am    
Your installer needs to find the correct path to store the .mdb file. Unfortunately I have no experience of using installers, so this may be a separate question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900