Help with linking tables in Access

Infiltrator64

Board Regular
Joined
Dec 19, 2004
Messages
63
I want to make my database portable so a user can put it in any folder they would like. I will have a folder called Database that they will always run the database from however I don't care where they put it on the local or network drives.

I simply want it to look in the folder that the database was opened in for any links.

I currently have one table I need to link to which will be in the Database folder. The only way i can figure out how to link it is with a fixed path of c:\database.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If homey don't play VBA, read no further, since that is how I have dealt with this.

Classically an .INI file was used, initially seeded during the user installation process, to specify the "foreign" directory("folder"). Nowadays it seems that everyone has gone to using the registy, though I still think .INI is a fine approach(and IMNSHO far more user friendly, which we know runs contrary to the Microsoft dogma of obfuscation and removing simple capabilities from users, as Microsoft believes they are all children that only mess things up).

That's the relatively easy part. Then the .Connect property can be used in code to link. Is this a feasible track for you?
 
Upvote 0

Forum statistics

Threads
1,221,877
Messages
6,162,579
Members
451,776
Latest member
bosvinn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top