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

How to make the Linked Tables in Access to Share only ONE connection?

Hello,

I appreciate it if someone can help me.

I have linked few Tables in Access form an ODBC-compliant database.
But when I check the database, it shows the number of connections as
the same as the number of tables that I've linked in Access.

My question is: Is there a way to share only ONE connection for those
linked tables?

Thanks.

DK

Nov 13 '05 #1
3 1324
I think my database uses one connection for the tables. I refresh my
links as follows when the database opens. I don't know if that's what
makes the difference.

Here's a snippet to refresh non-temporary ODBC attachments. You do have
to determine the connect string sConnect first.

set db = Currentdb()

For Each tdf In db.TableDefs
If (tdf.Attributes And dbAttachedODBC) = dbAttachedODBC _
And Left(tdf.Name, 1) <> "~" Then
tdf.Connect = sConnect
tdf.RefreshLink
End If
Next

Jerry Porter

Nov 13 '05 #2
Hello, Jerry,

Thanks for your reply. In my scenario, I have linked and opened
(simultaneously) 50 tables in Access. If I go back to the database
where I linked my tables from, I can see 9 connections. Do you think
if there is a way to use only one connection for my scenario?

BTW, how do I add those code in Access? Thanks.

DK

Nov 13 '05 #3
I had only one connection for my tables. I added another linked table,
and now I have two connections (though both sleeping), and I can't get
rid of the 2nd one, even after deleting the new attachment.

I tried stopping and restarting SQL Server.

So I don't have an answer.

Nov 13 '05 #4

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

Similar topics

3
by: James Bird | last post by:
Hello In order to perform a hetrogeneous join (I think that's what they're called) between MySQL and another database, I've created an Access database containing linked tables from each...
0
by: smd | last post by:
Hello and thanks for taking the time to read this. I've looked all over the web and newsgroups and can't find a solution to my problem. Since the source of the data is DB2, I figured I'd give you...
4
by: anand | last post by:
Hi, I have an Access 2000 database, which contains some native tables, and some linked tables which belong to an ORACLE database, through ODBC. Using VB.NET, I am trying to fetch some data by...
0
by: ericellsworth | last post by:
Hi all, I'm wondering if there's a way to remove the password Access (2003) has stored for an ODBC linked table without quitting and reopening the application. I have a set of linked tables...
7
by: smd | last post by:
Hello and thanks for taking the time to read this. I've looked all over the web and newsgroups and can't find a solution to my problem. I've posted this question to the Access 2000 group as well -...
1
by: Julia | last post by:
Hello there. I have a question somewhat related to this topic, and I don't know where else to go. I hope somebody can help. I've created a database in access, that I'd like to share with less...
1
by: Gil | last post by:
hello i have a front end access application that has mixed linked tables from 2 different sources. some tables are linked to a MYODBC Driver and the other tables are linked to an access database....
2
by: Andy | last post by:
Hello, I am working on an Access Application that uses Linked Tables to a SQL Server Backend. The problem I have is that there will be 2 types of users, one which will use a trusted connection and...
10
by: Jim Devenish | last post by:
I have a split front end/back end system. However I create a number of local tables to carry out certain operations. There is a tendency for the front end to bloat so I have set 'compact on...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...

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.