473,657 Members | 2,478 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 9810
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
24274
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
22201
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
9458
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 and repaired, but that didn't have any effect. Has anyone else seen this problem? If so, how is...
2
2526
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 remotely for each network.
2
6241
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
6007
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 frontend and open it again. When I try to use the forms, I get an error message: "Could not...
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 displayed the possible sources which starts out as My Documents. I chose Network Places and that brought...
7
4765
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 front ends to a single back end for initially 10 users (and the bosses have plans for this to go to...
1
7582
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
3281
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, it's been a matter of trotting over to the remote location and modifying the DSN (Control Panel >...
0
8740
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
7352
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
6176
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
5642
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
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
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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.