473,388 Members | 1,277 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Can't repoint linked tables

db is split access 2000

trying to replace production front end with the new dev front end

different path for the _be (linked tables) in the dev environment than
in production

when i start the new front end it stops w/ error "can't find linked
tables" then bails out w/out giving me a chance to change the path.

in the dev environment i can't put in a false path for linked tables
that would be true in the production environment.

any ideas?

-chris

Jan 11 '06 #1
1 2699
Create another mdb file then you can open a reference to the new fe, iterate
through the tables collection and reset the connect property of the linked
tables, something like:-
Const FE_DB_PATH = "<enter the path to the fe db here>"
const BE_DB_CONNECT = "<enter the new connectdetails forthe ables here>"

dim loDb as DAO.Database
dim loTab as DAO.TableDef

set loDb = OpenDatabase(FE_DB_PATH)

for each loTab in loDb.Tabledefs
If Len(loTab.Connect) > 0 Then
With loTab
.Connect = BE_DB_CONNECT
.RefreshLink
End With
End If
Next

Set loTab = Nothing
loDb.Close
Set loDb = Nothing

Obviouly you need to change whats between the quotes in the declaration for
FE_DB_PATH and BE_DB_CONNECT.
--

Terry Kreft
"fastfish" <fa******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
db is split access 2000

trying to replace production front end with the new dev front end

different path for the _be (linked tables) in the dev environment than
in production

when i start the new front end it stops w/ error "can't find linked
tables" then bails out w/out giving me a chance to change the path.

in the dev environment i can't put in a false path for linked tables
that would be true in the production environment.

any ideas?

-chris

Jan 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ootyguy | last post by:
Trying to do this all day and googling for answers but found none, hope someone can help. Thanks in advance. select * into OPENROWSET('SQLOLEDB','SERVER';'uid';'pwd',##test) from LocalTable ...
0
by: Chris Powell | last post by:
I am using Excel/Access 2000 and have two large Excel files (25,000 rows each) that I wish to create linked tables in Access rather than importing into Access. The two source Excel files change...
5
by: pinballjim | last post by:
Hello everyone, I'm looking for a simple way to create a local copy of a linked table. I've got a database that links about 10 tables from other databases. This works fine on my machine, but I...
2
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing...
5
by: b b | last post by:
I created the following code to delete all linked tables in my database (Access 200): -------------------------------------------------------- Dim tbl As TableDef Dim dbs As Database Set dbs...
3
by: S. van Beek | last post by:
Dear reader, To work with linked tables is a professional method of working with a frond end and back end mdb. Working with linked tables on a local pc gives an acceptable performance but...
1
by: S. van Beek | last post by:
Dear reader, How to increase the response in case of working with linked tables, program in frond end mdb and tables in back end mdb. For possible combinations and their response...
25
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in...
2
by: KayC | last post by:
Hi, I use Access2002 SP3. I have taken ownership of a mdb which I would like to redesign. I want to repoint all current queries from a daily table to a new historic table. There are over 30 queries...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.