PDA

Click to See Complete Forum and Search --> : Location independant database HELP !!!


VBfreak
Feb 16th, 2000, 07:27 PM
I am making a program that I want to be location independant. I mean that you can drop the application and the database in the same directory and that the application when starting will look in the same directory as it is to find the database and connect to it. I am using ADO and am connecting manually to the database. Thanks!

VBfreak
Feb 17th, 2000, 01:49 AM
Thanks MartinLiss it's an even better idea than what I had althought mine worked. All I had to do in the connection was to write the name of my database in the Source parameter and it will connect to it automaticaly!

DatabaseLife
Feb 17th, 2000, 11:00 AM
Why not use a UDL file?

VBfreak
Feb 17th, 2000, 11:23 AM
It's because I can't use any of those and I figured it out so thanks for the effort!

MartinLiss
Feb 17th, 2000, 11:24 AM
App.Path will give the path where your program is running so if your database name is "MyDB.MDB", then strPath = App.Path & "\MyDB.MDB" will yield the path.

------------------
Marty
What did the fish say when it hit the concrete wall?
> > > > > "Dam!"