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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to connect to another copy of the same data bae

Status
Not open for further replies.

PercyN

Programmer
May 16, 2007
86
I have a program that I have split. It works fine because I dont have to move the BE (yet). If I ever do move the BE to another location or to a different server or for some reason I need to connect to another copy (e.g. backup copy) of the same data base, how do I go about?
 
Thanks Remou, this was very helpful but I actually want to do this in code, so that end users can connect to a backup copy for instance of the data base by simply specify the location of the new db.
 
There is full code here for an Access be:
I prefer to keep a "table of tables" rather than just relink everything in the be. I use a start-up form that checks against the table of tables and if anything is wrong, attempts to correct it or opens the relink form, otherwise, opens the menu. A table of tables is also useful if your be is something other than Access. Tables vcan also be relinked through ADOX and / or VBScript.

Tony Toews also has an example as, I am sure, do other Access MVPs.

A search of tek-tips returns a number of threads.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top