473,780 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7001
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.c omwrote in message
news:96******** *************** ***********@p59 g2000hsd.google groups.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" <connearneyATco mcastDOTnetwrot e:
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.c omwrote in message

news:96******** *************** ***********@p59 g2000hsd.google groups.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
2067
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 ? I'll be very greatful for an answer asap :-) Thanks
4
2635
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 QA tested for a new year release. I don't think that going to prove practical, but there is no harm in trying :) and some serious family commitments. But it has to be done soon so this is stage one. Mike Winter provided an extensive list of...
5
3306
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 updated whenever the database opens. I need to have them updated based on an INI file that resides in the same directory as the current database. I do not need or want the ability to open a dialog box to pick the location. I simply want it to...
0
1485
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 had no record of having linked to the sheet, so I cant unlink it. Any Suggestions? I need that sheet as it is the result of 10 hours work!~!~
0
2136
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 system. I actually import from two different named ranges from each workbook so for every import the following subroutine is used twice. The database is used to collate data collected from different surveys entered by remote users into an Excel...
3
2088
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 what I am trying to do (all data used in my db will come from this one spreadsheet). I am currently trying to utilize the make-table queries to create the tables that I need from this data, however I am unsure of how to add foreign keys to a...
2
2630
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 only able to have one of the databases open at a time. When someone is using one of the databases associated to the spreadsheet and another user tries to access one of the other linked databases then they just get an error stating that the file...
27
1932
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 linked css file and when its included in the new file its referencing a css file in the wrong spot. I need to add "../" to the css file reference in Index.php to make it work.
0
2208
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 the right way of it there's an easier way to do it. Background/Platform: Windows XP Office Excel 2007 Visual Studio Tools for Office 2008 Document level customization VB.Net I have a spreadsheet that is used to project which site(s) a...
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10139
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9931
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8961
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7485
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5504
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2869
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.