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

Cannot find Backend in split database 1

Status
Not open for further replies.

hefly

Technical User
Feb 6, 2008
134
US
I have Access 2007. I split the DB on my machine and I have distributed the front end.

The frontend opens to the path to the backend on my machine, but the distributed Frontends can't locate the backend from the other user's computer. The backend is on a common server.

How do I allow the front end on the users' machines to browse for the back end?

Thanks.

Hefly
 
Hey!!! I found it accidentally. Right click on a linked table and open "Liked Table Manager." Choose the tables, refresh the links. Linked Table Manager does it all for you.

Thanks!

Hefly
 
If interested I have the code that does the following
1)Automatically check make sure all tables are linked
2)If not presents a file browser to search for backend
3)Relinks all tables based on selected file.

Basically automates the steps of the linked table manager so that you can hide this from the user. The code is pretty advanced, but works well.
 
Absolutely! That would be great MajP.

Thank you!!

Hefly
 
Here is the code.

There is a hidden form that I open when the db opens. The code is in the form to call the code to do the relinking. There is a module with all of the relinking code and another just for a common dialog (I like the API version).

Some of this code is mine and some is from other sources. I have made it a little more complex, because I allow the user to click a button to link to a network backend or select a local replica back end.

This will probably take a while to digest.
 
Thank you MajP!
The form stops on Debug. I guess it needs some linked tables to run?

Hefly
 
Yes, you will have to modify some of the code on the form. It was specific to the app. Make a dummy backend and link to it. Then move the back end and see if you get a file browser to go find it.
 
In the form code
change
MsgBox Err.Number & ": " & Error.Description
to
MsgBox Err.Number & ": " & Err.Description

In the relink module I call a standard error checker which does not exist. Make your own message. After that it seems to work fine.
 
Thank you again MajP for the explanation!

Hefly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top