linked-tables

Setting Linked Database (MS Access) path without access to linked database

匆匆过客 提交于 2019-12-02 07:00:08
问题 I have an Access system that comprises two parts: a "frontend" .mdb file that contains forms, reports and macros, and a backend .mdb file that contains the data. Copies of the frontend MDB files are stored on each computer and the backend file is located at \\server\share\backend.mdb . The frontend MDB files use the Linked Table feature of Access to connect to the backend MDB. I recently made some changes to the MDB on my home network, I copied both files to my machine and was able to change

Preserving linked tables for Access DBs in same folder when the folder changes

一个人想着一个人 提交于 2019-11-30 13:22:58
问题 I've got two Access databases that share linked tables. They are deployed together in a directory and accessed via code in a Word form. How can I make sure that the links are preserved when the two databases are copied (together) to a different folder? Since I'm not "opening" the database, per se (it's being accessed via ADO), I don't know how to write code to refresh the links. 回答1: Update 14APR2009 I found that the previous answer I gave here was erroneous, so I updated it with new code.

Linked Access DB “record has been changed by another user”

北城余情 提交于 2019-11-30 04:56:46
I'm maintaining a multiuser Access 2000 DB linked to an MSSQL2000 database, not written by me. The database design is very poor, so you'll have to bear with me. On the 'Customer' form there's a 'Customer_ID' field that by default needs to get the next available customer ID, but the user has the option of overriding this choice with an existing customer ID. Now, the Customer_ID field is not the PK of the Customer table. It's also not unique. If a customer calls twice to submit a job, the table will get two records, each with the same customer information, and the same customer ID. If a user

Linked Access DB “record has been changed by another user”

馋奶兔 提交于 2019-11-29 02:28:37
问题 I'm maintaining a multiuser Access 2000 DB linked to an MSSQL2000 database, not written by me. The database design is very poor, so you'll have to bear with me. On the 'Customer' form there's a 'Customer_ID' field that by default needs to get the next available customer ID, but the user has the option of overriding this choice with an existing customer ID. Now, the Customer_ID field is not the PK of the Customer table. It's also not unique. If a customer calls twice to submit a job, the table

Changing linked table location programmatically

五迷三道 提交于 2019-11-27 12:55:03
I have an Access database with a linked table in a second database, located in the same directory as the first. I would like to copy the whole directory to a new location (for testing) and have database one still link to the table in database two, but the linkage is still to the original directory, not the new location. I'd like to do one of two things: either Make the link to the table in database two in such a way that the folder path is relative - that the path to database two isn't hardcoded. or Have a routine in Form_Load (or an autoexec macro) that checks the application.path and

Changing linked table location programmatically

左心房为你撑大大i 提交于 2019-11-26 16:09:34
问题 I have an Access database with a linked table in a second database, located in the same directory as the first. I would like to copy the whole directory to a new location (for testing) and have database one still link to the table in database two, but the linkage is still to the original directory, not the new location. I'd like to do one of two things: either Make the link to the table in database two in such a way that the folder path is relative - that the path to database two isn't