Solved

MS ACCESS 2010 - ? dynamically link external tables ?

Posted on 2013-05-17
7
510 Views
Last Modified: 2013-06-11
I'd like to be able do dynamically link to external tables in MS ACCESS 2010.

Consider a file structure like:

C:\myApp\Programs\myprogram.accdb
C:\myApp\Input\inputfile1.ACCDB
C:\myApp\Input\inputfile2.ACCDB
...
C:\myApp\Input\inputfileNN.ACCDB

I'd like to be able to start myprogram.accdb and have an autoexec run some VB code to find all NN of the files in the INPUT folder
and dynamically link to them.

I want to be able to move the ENTIRE myApp folder to a new location and have it run there with no changes.



Thanks
Phil
0
Comment
Question by:philkryder
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 21

Accepted Solution

by:
Boyd (HiTechCoach) Trimmell, Microsoft Access MVP earned 200 total points
ID: 39176447
Sure you can do what you want.

Herre is some code that will work: Link Tables: Re-Linking back-end (BE) database

also see: DB start up and BE relinking
0
 
LVL 39

Assisted Solution

by:als315
als315 earned 150 total points
ID: 39177124
You can use Jstreet Access relinker:
http://www.jstreettech.com/cartgenie/pg_developerDownloads.asp
updated version:
#a38653506
0
 
LVL 12

Assisted Solution

by:pdebaets
pdebaets earned 150 total points
ID: 39177303
Our free TableLinker utility may help: http://www.peterssoftware.com/tlk.htm
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 1

Author Closing Comment

by:philkryder
ID: 39230602
no source code - just executable
0
 
LVL 39

Expert Comment

by:als315
ID: 39231114
Jstreet relinker has source codes.
0
 
LVL 1

Author Comment

by:philkryder
ID: 39239564
Thanks everyone!
I ended up building a VB launcher that finds the Newest FrontEnd program, copies it to Local profile, and then launches it with a /CMD  parm that points to the location of the backend database files. The front end then relinks all linked tables based on the parm.

Thanks much! Phil
0
 
LVL 21
ID: 39239601
Phil,

Thanks for the update and your solution.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now