Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2003, 03:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default Linked Table Direct Referencing

I have an Access XP database that is linked to another table in another MDB file. Both of these MDBs are located out on a network drive for people in different offices to use. It works great except for the following situation.

The district staff whose offices are located in other cities are connected to the network using a different drive letter. The linked table is located in a file which is located in \\Network Drive\Folder\Directory\MydB.mdb. The central office maps \\Network Drive\Folder as P:. Therefore, the file is located at P:\Directory\MydB.mdb. However, the same drive is defined as J: to the district offices. They see J:\Directory\MydB.mdb.

Problem: When you link a table in Access XP and specify the drive, it takes the P: or J:, then the directory, then the file, then the table name. Even though P: = J: = \\Network Drive\Folder, the district's attempt to open the main db fails because it's looking for a table linked via P:\Directory\MydB.mdb, not J:\Directory\MydB.mdb. The P: and J: should be irrelevant. Access should be looking for \\Network Drive\Folder\Directory\MydB.mdb... but it doesn't.

Convincing the IT people to map everyone as P: or J: is not an option. My temporary solution is to have two versions of the main MDB... one for the central office and one for the district. The central office version links to P:\Directory\MydB.mdb whereas the district's version links to J:\Directory\MydB.mdb (the same file).

Is there way to link a table and have Access XP recognize the actual location and not rely on the arbitrary mapping label of P: and J:?


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
 
Old July 16th, 2003, 03:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Greg

I seem to remember that you can just type the UNC into the File Name box when linking to an external database. Have you tried this?

I'm not connected to a network at the moment so I can't test it.



Brian Skelton
Braxis Computer Services Ltd.
 
Old July 16th, 2003, 08:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Quote:
quote:Originally posted by Braxis
I seem to remember that you can just type the UNC into the File Name box when linking to an external database. Have you tried this?
Brian,

I typed it rather than clicked to it and it seems to have worked. I love it when a solution is that simple. I was unaware you could actually type UNCs into browse dialog boxes. Thanks.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with table referencing to itself VerbatimBOT SQL Server 2000 3 May 22nd, 2007 04:53 AM
Can a Make Table Query produce a Linked table? kronik Access 5 May 16th, 2006 06:17 AM
Linked Table sdilucca Access 1 February 24th, 2006 07:29 AM
linked table Tasha Access VBA 1 August 6th, 2004 03:04 PM
Detect if linked table is available giswim Access 0 September 17th, 2003 05:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.