Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing database file location

Status
Not open for further replies.

Nopps

MIS
Nov 18, 2000
8
CA
I've created a program, and it requires a database (in Microsoft Accessif it matters) for some information. But, when I change computers, I have to change the location of the database in the program.
The only way I can think to fix this problem is to create a installer program to copy the file to a location, record where it was installed and put that location in the database access field.
Is there an easier way to do this? It would really help me out.
 

Hi,

The easiest is of course if the database is located in the same dir as the program, alternativly that the path is given relatively to the app.path
Or: You must know which directory the intallation program installs the database to, this information can be added to your program...


Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Or, set the database to a DSN and then you only need to add the DSN with the same name on the client PC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top