Linked tables in MS access used by IIS problem

Posted on 2004-04-16
Last Modified: 2012-05-04
Got a Web-server running IIS. On the local disk got an mdb-file with 2 linked tables to two other mdb-files (tables) located on another server (file-server).
In an ASPscript I'm connecting to a query; this query has information of a table in the local mdb and the 2 linked tables.
Problem: the webbrowser (on a client machine)errors saying the specified drive of the linked tables is not correct.
Tried to fix this by setting up the to remote mdb-files as ODBC's; but the local access won't let me link via ODBC to it.

Anyone a good idea how to solve this?
Question by:Totosh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Expert Comment

ID: 10845168
If you are using drive letters for your linking (D:\, E:\, etc.) that could be the problem.  Use server names, if possible.

Author Comment

ID: 10858164
Thought about that too but getting a permissions problem on the page now:
 Microsoft JET Database Engine error '80004005'
The Microsoft Jet database engine cannot open the file '\\server\directory\datafile.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

The datafile.mdb file is the original table; so basically the link works but now getting permission problems.

Any ideas how to work-around or solve this?


Expert Comment

ID: 10860117
Datafile.mdb is on the webserver and now your ASP page connects to it with a connection path that uses server names instead of file letters.  That is good.  Datafile.mdb has two linked tables that refer to a database on another server (file server).  These links should also use server names instead of file letters.

You should also check to make sure you can access the database on the file server directly.  Also, is there any chance it is actually opened exclusively by another user?  This also occurs if any object in that database is in design view.  Is there any possibility of moving that database to the web server?  If the linked tables are read only and updated infrequently, could local copies be imported?
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.


Author Comment

ID: 10928998

Sorry for the late reply.
No - moving the applications/database to the web-server is not an option.
But I made a small program that is importing the needed tables.

Other and related issue with this is the size of the mdb-file. When importing these tables; the size of the mdb-file is (of course) getting bigger and bigger.
Is there a way I can compact the mdb-file automatically (via code or macro)?


Accepted Solution

phL earned 250 total points
ID: 10929285
The Access Web has some code to compact a database:

It should be done when no one is using it.

Author Comment

ID: 10929793

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

696 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