473,427 Members | 1,821 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,427 software developers and data experts.

change link path for linked spreadsheet

Hello everyone,

I am using Access 2003. In my database there is a table which is
linked to an excel spreadsheet. When I move the mdb file to someone
else's computer the spreadsheet will be in a different location. A
location which I can not access from my own PC when designing the
database, so can not use the Linked Table Manager to update the link.
I need to find a way of telling the database where the source
spreadsheet for the link table is.

Is there a way of using a public constant which would store a string
which would be the network path to the spreadsheet, which I could
combine with a startup module which would tell the database where to
find the source spreadsheet?

I have tried using the fRefreshLinks function from the Microsoft
website but this would appear to be designed for re-locating BE mdb's
rather than spreadsheets and gives me error number 3343, unrecognised
database format, followed by the existing file and path name for the
spreadsheet.

Thanks,

Franc.

Oct 21 '08 #1
2 6981
Hi Franc

Store the path in a control on a form and reference that
when relinking. That way you can edit it and relink where
you need to.

Google for code to "Select a directory VBA" and
"relink Access to excel file VBA".

You should get everything you need.
Regards Kevin
"franc sutherland" <fr**************@googlemail.comwrote in message
news:96**********************************@p59g2000 hsd.googlegroups.com...
Hello everyone,

I am using Access 2003. In my database there is a table which is
linked to an excel spreadsheet. When I move the mdb file to someone
else's computer the spreadsheet will be in a different location. A
location which I can not access from my own PC when designing the
database, so can not use the Linked Table Manager to update the link.
I need to find a way of telling the database where the source
spreadsheet for the link table is.

Is there a way of using a public constant which would store a string
which would be the network path to the spreadsheet, which I could
combine with a startup module which would tell the database where to
find the source spreadsheet?

I have tried using the fRefreshLinks function from the Microsoft
website but this would appear to be designed for re-locating BE mdb's
rather than spreadsheets and gives me error number 3343, unrecognised
database format, followed by the existing file and path name for the
spreadsheet.

Thanks,

Franc.

Oct 22 '08 #2
On Oct 22, 5:17*am, "KC-Mass" <connearneyATcomcastDOTnetwrote:
Hi Franc

Store the path in a control on a form and reference that
when relinking. *That way you can edit it and relink where
you need to.

Google for code to "Select a directory VBA" and
"relink Access to excel file VBA".

You should get everything you need.

Regards Kevin

"franc sutherland" <franc.sutherl...@googlemail.comwrote in message

news:96**********************************@p59g2000 hsd.googlegroups.com...
Hello everyone,
I am using Access 2003. *In my database there is a table which is
linked to an excel spreadsheet. *When I move the mdb file to someone
else's computer the spreadsheet will be in a different location. *A
location which I can not access from my own PC when designing the
database, so can not use the Linked Table Manager to update the link.
I need to find a way of telling the database where the source
spreadsheet for the link table is.
Is there a way of using a public constant which would store a string
which would be the network path to the spreadsheet, which I could
combine with a startup module which would tell the database where to
find the source spreadsheet?
I have tried using the fRefreshLinks function from the Microsoft
website but this would appear to be designed for re-locating BE mdb's
rather than spreadsheets and gives me error number 3343, unrecognised
database format, followed by the existing file and path name for the
spreadsheet.
Thanks,
Franc.
Hi Kevin,

Thanks for the advice. I found some useful stuff here
http://p2p.wrox.com/topicindex/31037.htm in case anyone else is on
this as well.

All the best,

Franc.
Oct 22 '08 #3

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

Similar topics

4
by: HKannen | last post by:
Hi everybody, I'd like to create a link to a file instead of copying the file to the new destination. Is there a possibility to do this ? Is there something like a Link Object in C# .NET ? ...
4
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
5
by: Scott Tilton | last post by:
I am having a terrible time getting this to work. I am hoping someone out there can help me with very specific code examples. I am trying to get the linked tables in my Access 97 database to be...
0
by: John Baker | last post by:
Hi: I was using a spreadsheet linked to Access, and had a system crash. Since then I cant get at the spreadsheet either through Excel ( it says I am using it) or the access application, which...
0
by: me here | last post by:
I have a VBA subroutine that links an MS Excel spreadsheet and copies the data into a local table. This process is controlled by a form that allows users to select the spreadsheet from the file...
3
by: Janelle.Dunlap | last post by:
I have a table in my database that is linked to an excel spreadsheet. I need to be able to manipulate the data in this linked table so that I can create smaller normalized tables that work with...
2
by: crimestarter.jim | last post by:
Good afternoon, I am not the most informative when it comes to Microsoft Access. I have a user that is using Access 2003 and has 1 excel spreadsheet linked to 3 different databases. They are...
27
by: Jon Slaughter | last post by:
Can I modify code that I have included using <?php include("../Index.php"); ?> The Index.php file contains links that need to be modified to work. Index.php is basically an html file uses a...
0
by: dutsnekcirf | last post by:
Okay, I think this one is a really hard one for yous geniuses out there. I'm going to try my best to explain in as much detail as I can. And for the most part I just want to know if I'm doing this...
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:
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.