473,566 Members | 3,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linked Table Manager

sj
I have written an application (CW.mde) with a seperate data (Data.mda)
file. My Data tables are linked to CW.

I want my user to be able to re-link the data.mda when they change
location/path of the data.mda. Hence, I have an button with the
following:

DoCmd.RunComman d acCmdLinkedTabl eManager

The button works on the computer with Ms Access but not those that on
runtime.

Does anyone has any experience how to make it work?

Alternatively, can anyone tell me how you link up user workstation (on
access runtime) to the data that is resided on the server?

Jul 5 '06 #1
3 9804
The Linked Table Manager is not a runtime feature. The links can be reset in
code and then you can use .RefreshLink to reestablish them. Code to choose a
file using the Windows Common Dialog can be found in
http://www.mvps.org/access/api/api0001 and code to relink can be found in
the Solutions9 sample database that you can download from
http://download.microsoft.com/downlo...a/bapp2000.exe.

Larry Linson
Microsoft Access MVP

"sj" <se*********@gm ail.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.com.. .
>I have written an application (CW.mde) with a seperate data (Data.mda)
file. My Data tables are linked to CW.

I want my user to be able to re-link the data.mda when they change
location/path of the data.mda. Hence, I have an button with the
following:

DoCmd.RunComman d acCmdLinkedTabl eManager

The button works on the computer with Ms Access but not those that on
runtime.

Does anyone has any experience how to make it work?

Alternatively, can anyone tell me how you link up user workstation (on
access runtime) to the data that is resided on the server?

Jul 5 '06 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The Access run-time doesn't have the Wizards (Link Table Manger is a
wizard) that the whole Access installation has. You have to write your
own code to link the data to the front-end (CW.mde). The following is a
routine I use to reconnect tables. Modify it to suit your needs.

Sub ReconnectMDBTab les()

' This is the path to the data back-end.
' You can use a parameter to this Sub instead of this Const
' that has the path to the back-end.
Const DEV_PATH = "C:\Documen ts and Settings\mfoste r\My " & _
"Documents\Stoc kOptionExpensin g\Access\" & _
"StockOptionAll ocations_be.mdb "

Dim db As DAO.Database
Dim td As DAO.TableDef
Dim strPath As String
Dim strTable As String

Set db = CurrentDb
strPath = DEV_PATH

For Each td In db.TableDefs
If Left$(td.Name, 4) <"MSys" And _
Left$(td.Name, 1) <"~" Then
' Skip System & "deleted" tables.
' Only reconnect if the table is an Access attached table.
If Left$(td.Connec t, 10) = ";DATABASE= " Then
' Drop & reconnect the linked table
strTable = td.Name
DoCmd.DeleteObj ect acTable, strTable
DoCmd.TransferD atabase acLink, _
"Microsoft Access", strPath, , strTable, strTable
DoEvents
Debug.Print "Reconnecte d: " & strTable
End If
End If
Next td

Debug.Print "Done"

exit_:
On Error Resume Next
Set td = Nothing
Set db = Nothing

End Sub

--
MGFoster:::mgf0 0 <atearthlink <decimal-pointnet
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRKwdrIechKq OuFEgEQLPDgCg29 Ecfj3MGHzAvFB7A DR6W1A0JqIAoJC2
fU7kixbPHKHQbte e7Ksy7gxv
=pmjE
-----END PGP SIGNATURE-----
sj wrote:
I have written an application (CW.mde) with a seperate data (Data.mda)
file. My Data tables are linked to CW.

I want my user to be able to re-link the data.mda when they change
location/path of the data.mda. Hence, I have an button with the
following:

DoCmd.RunComman d acCmdLinkedTabl eManager

The button works on the computer with Ms Access but not those that on
runtime.

Does anyone has any experience how to make it work?

Alternatively, can anyone tell me how you link up user workstation (on
access runtime) to the data that is resided on the server?
Jul 5 '06 #3
sj
hi mg,

i have changed the default to:
Const DEV_PATH = "C:\Program Files\CW\data.m de"

but it didn't work.

Btw, i don't understand the following codes:
If Left$(td.Name, 4) <"MSys" And _
Left$(td.Name, 1) <"~" Then
' Skip System & "deleted" tables.
' Only reconnect if the table is an Access attached table.
If Left$(td.Connec t, 10) = ";DATABASE= " Then
could you elaborate?

thanks.

MGFoster wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The Access run-time doesn't have the Wizards (Link Table Manger is a
wizard) that the whole Access installation has. You have to write your
own code to link the data to the front-end (CW.mde). The following is a
routine I use to reconnect tables. Modify it to suit your needs.

Sub ReconnectMDBTab les()

' This is the path to the data back-end.
' You can use a parameter to this Sub instead of this Const
' that has the path to the back-end.
Const DEV_PATH = "C:\Documen ts and Settings\mfoste r\My " & _
"Documents\Stoc kOptionExpensin g\Access\" & _
"StockOptionAll ocations_be.mdb "

Dim db As DAO.Database
Dim td As DAO.TableDef
Dim strPath As String
Dim strTable As String

Set db = CurrentDb
strPath = DEV_PATH

For Each td In db.TableDefs
If Left$(td.Name, 4) <"MSys" And _
Left$(td.Name, 1) <"~" Then
' Skip System & "deleted" tables.
' Only reconnect if the table is an Access attached table.
If Left$(td.Connec t, 10) = ";DATABASE= " Then
' Drop & reconnect the linked table
strTable = td.Name
DoCmd.DeleteObj ect acTable, strTable
DoCmd.TransferD atabase acLink, _
"Microsoft Access", strPath, , strTable, strTable
DoEvents
Debug.Print "Reconnecte d: " & strTable
End If
End If
Next td

Debug.Print "Done"

exit_:
On Error Resume Next
Set td = Nothing
Set db = Nothing

End Sub

--
MGFoster:::mgf0 0 <atearthlink <decimal-pointnet
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRKwdrIechKq OuFEgEQLPDgCg29 Ecfj3MGHzAvFB7A DR6W1A0JqIAoJC2
fU7kixbPHKHQbte e7Ksy7gxv
=pmjE
-----END PGP SIGNATURE-----
sj wrote:
I have written an application (CW.mde) with a seperate data (Data.mda)
file. My Data tables are linked to CW.

I want my user to be able to re-link the data.mda when they change
location/path of the data.mda. Hence, I have an button with the
following:

DoCmd.RunComman d acCmdLinkedTabl eManager

The button works on the computer with Ms Access but not those that on
runtime.

Does anyone has any experience how to make it work?

Alternatively, can anyone tell me how you link up user workstation (on
access runtime) to the data that is resided on the server?
Jul 7 '06 #4

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

Similar topics

3
24269
by: David Gray | last post by:
Hello all, Having problems connecting to an Oracle 9i database from within SQL/Server 2000 using the Security/Linked Servers feature. Server1 (SQL/Server) ----------- Windows Server 2003, Standard edition MS SQL/Server 2000 Oracle 9i Client kit (OLEDB & ODBC) & Enterprise management tools
3
22184
by: ziggs | last post by:
I have a few DB's that I inherited. One Access database 97 is working fine and on our network and is the front end to another access 97 db within an unknown network folder. But, here's the question. When I look in the table area, I see three linked tables. How can view the link table and determine where the back end Access 97 is? TIA
2
9450
by: Bruce | last post by:
Greetings! After finally figuring out that the Linked Table manager is no longer an add-in in Access 2003 I now discover that it does not display any of my linked tables in the 'select linked tables to be updated' list. Although I have about 30 linked tables in my application, absolutely none of them are showing up in the list. I compacted...
2
2525
by: Sam DeRT | last post by:
Is there a way to hard code what a path to a linked table would be without going through the Linked Table Manager or a re-linking process? My issue is that I'm installing a database with linked tables onto several different networks. I can pre-determine what each path will be, but I can't do the re-linking or the Linked Table Manager...
2
6238
by: Ian Davies | last post by:
Does anyone know how to open the linked table manager using VBA code behind a comand button in Access2000 Ian
2
5999
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database, and the linked tables are successfully created. I use the data from these linked tables in several forms. All works great until I close the Access...
3
1082
by: Parasyke | last post by:
Can anyone guide me through changing the location of my linked tables through the Linked Table Manager? (MS-Access 2000) Here's what I've done: I'm in the front-end application on a split database of course. I open the Linked Table Manager, Select all Tables, and check "Always Prompt for new location. This brings up a window which...
7
4760
JodiPhillips
by: JodiPhillips | last post by:
Hi, My first post! I've basically taught myself Access and the little I know about VBA through reading these forums and a couple of books. I'm in the middle of a project at work - to put it mildly I've been thrown in at the deep end, in the past I've just done simple databases and that's been fine. Now, however I have to "roll out" various...
1
7574
by: franc sutherland | last post by:
Hello, I have a client who uses Access 97, but does not have the Linked Table Manager. The system is split into front and back end. Is it possible to install the Linked Table Manager into Access 97? If not, how does one manage the table links? Thanks,
1
3266
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 a SQL Server box that contains some of those databases and I've got the responsibility for the Access end of the changes. In most of the cases so far,...
0
7673
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...
0
7584
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...
0
8109
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...
0
7953
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...
0
6263
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...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2085
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
926
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...

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.