Solved

Reconnect Table Dialog

Posted on 2008-10-11
2
233 Views
Last Modified: 2013-11-29
I want to make a form can relink the table when it startup, if the data source is change or can not find then pop up the open dialog to find the data source and reconnect the table!  How to do that?
0
Comment
Question by:Uncochen
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 22693615

  I'm attaching a relink sample database.   Code is called in the Autoexec.  Once of the tables is checked and if able to connect, the rest of the code is skipped.  If not, then the open dialog is popped up asking for the location of the back end database.

Enjoy.

JimD.
Relink2.Zip
0
 
LVL 26

Expert Comment

by:dannywareham
ID: 22694046
See here too
http://www.mvps.org/access/tables/tbl0009.htm

Same meat, different gravy as Jim's
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

839 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