473,388 Members | 1,215 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.

Manually changing a linked table location

I deploy be-fe solutions to clients, and provide them with updates as a web
link to the Fe file, wrapped in an installer.
I can generally simulate their shares, if they are using a mapped drive.

However if they are not using mapped drives, and are using their own domain
server address, then I cannot simulate that so easy.

Can i manually change the address where the linked table objects point,
before deployment.?
(I cant do it with a relink, since the location i want to provide the link
for is not on my network, and having to get the client to do the relink
defeats the objective of providing a simple update solution)

I noted that the current link address is stored in the mSysObjects table,
but it appears not to be adjustable.

Thanks in advance.

Gerry Abbott,
Nov 13 '05 #1
3 4543
AFAIK, Gerry, there is no way to set the link to a non-existient location.

There are various ways to simulate it, but the simplest approach is probably
to test the existence of the back end on startup, and if not found, ask the
user to locate the file. There's an example of how to do that in the module
of solutions.mdb:
http://msdn.microsoft.com/library/of...dbdownload.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gerry Abbott" <pl****@ask.ie> wrote in message
news:a0*****************@news.indigo.ie...
I deploy be-fe solutions to clients, and provide them with updates as a web
link to the Fe file, wrapped in an installer.
I can generally simulate their shares, if they are using a mapped drive.

However if they are not using mapped drives, and are using their own
domain server address, then I cannot simulate that so easy.

Can i manually change the address where the linked table objects point,
before deployment.?
(I cant do it with a relink, since the location i want to provide the link
for is not on my network, and having to get the client to do the relink
defeats the objective of providing a simple update solution)

I noted that the current link address is stored in the mSysObjects table,
but it appears not to be adjustable.

Thanks in advance.

Gerry Abbott

Nov 13 '05 #2
Thanks for the prompt reply, Allen,
Ive used the re-link code in other apps, but its still less than eloquent
especially if there several fe users to install for.
However, since that code uses the windows comdlg32.dll to get the file
location and name, i could replace that with
a 'known' file location and name. It could be hard coded, or held in a Fe
local table (that way I could modify it, if the be had to be moved)
This should eliminate user intervention after install. Would you see any
difficulties with this approach.
Gerry Abbott

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:43***********************@per-qv1-newsreader-01.iinet.net.au...
AFAIK, Gerry, there is no way to set the link to a non-existient location.

There are various ways to simulate it, but the simplest approach is
probably to test the existence of the back end on startup, and if not
found, ask the user to locate the file. There's an example of how to do
that in the module of solutions.mdb:
http://msdn.microsoft.com/library/of...dbdownload.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gerry Abbott" <pl****@ask.ie> wrote in message
news:a0*****************@news.indigo.ie...
I deploy be-fe solutions to clients, and provide them with updates as a
web link to the Fe file, wrapped in an installer.
I can generally simulate their shares, if they are using a mapped drive.

However if they are not using mapped drives, and are using their own
domain server address, then I cannot simulate that so easy.

Can i manually change the address where the linked table objects point,
before deployment.?
(I cant do it with a relink, since the location i want to provide the
link for is not on my network, and having to get the client to do the
relink defeats the objective of providing a simple update solution)

I noted that the current link address is stored in the mSysObjects table,
but it appears not to be adjustable.

Thanks in advance.

Gerry Abbott


Nov 13 '05 #3
No, that's fine.

If you know ahead of time the path that it needs to connect to, and the
fully qualified file name is valid, the code that sets the Connect property
of the TableDef will run fine with no need to call the FileOpen dialog.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Gerry Abbott" <pl****@ask.ie> wrote in message
news:GG****************@news.indigo.ie...
Thanks for the prompt reply, Allen,
Ive used the re-link code in other apps, but its still less than eloquent
especially if there several fe users to install for.
However, since that code uses the windows comdlg32.dll to get the file
location and name, i could replace that with
a 'known' file location and name. It could be hard coded, or held in a Fe
local table (that way I could modify it, if the be had to be moved)
This should eliminate user intervention after install. Would you see any
difficulties with this approach.
Gerry Abbott

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:43***********************@per-qv1-newsreader-01.iinet.net.au...
AFAIK, Gerry, there is no way to set the link to a non-existient
location.

There are various ways to simulate it, but the simplest approach is
probably to test the existence of the back end on startup, and if not
found, ask the user to locate the file. There's an example of how to do
that in the module of solutions.mdb:
http://msdn.microsoft.com/library/of...dbdownload.htm

"Gerry Abbott" <pl****@ask.ie> wrote in message
news:a0*****************@news.indigo.ie...
I deploy be-fe solutions to clients, and provide them with updates as a
web link to the Fe file, wrapped in an installer.
I can generally simulate their shares, if they are using a mapped drive.

However if they are not using mapped drives, and are using their own
domain server address, then I cannot simulate that so easy.

Can i manually change the address where the linked table objects point,
before deployment.?
(I cant do it with a relink, since the location i want to provide the
link for is not on my network, and having to get the client to do the
relink defeats the objective of providing a simple update solution)

I noted that the current link address is stored in the mSysObjects
table, but it appears not to be adjustable.

Nov 13 '05 #4

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

Similar topics

6
by: Lewis Veale | last post by:
I have an Access 2000 front-end pointing at a SQL Server backend, with around 80 linked tables and views. I frequently need to point the front-end at different versions of the back-end, and achieve...
2
by: m23 | last post by:
Hi, I have an access database unfortunately still running under access 97. This contains a number of linked tables to another access 97 database. I was wandering if there is a way to edit...
8
by: ghadley_00 | last post by:
Hi, I have an access database with a table linked to an external text file. Occasionally the location of the database and the text file change (but are always in the same directory). Is there a...
3
by: Richard Hollenbeck | last post by:
Hello, I just moved my main database and the backend database to a better location and changed the name. But now I can't seem to get Access to recognize the new location and name. I tried using...
5
by: susan | last post by:
Hi, In my application I want the location of my application-database as well as the location of my data-database to be displayed. I retrieve the name of the application by: ApplName =...
8
by: brucedodds | last post by:
I've inherited an A2003 application with linked SQL Server 2000 tables in the back end, using the Microsoft SQL Server ODBC driver. We've set up a test SQL Server database. I'd like to automate...
3
by: ischwartz88 | last post by:
Hi. I have written a script that searches through every field in every table in a given database. It works fine in most databases, however, when I run it in a database with Linked tables, the script...
7
by: franc sutherland | last post by:
Hi everyone, I am using Access 2003. I have a database with a table in it which is linked to an excel spreadsheet. When I install the database on someone else's system, the pathname to the...
1
prn
by: prn | last post by:
Hi folks, Here's a weird one. We have a fair number of Access applications where the front end sits on a user's desk somewhere, but the data sits on a SQL server. We're in the process of retiring...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.