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

Identifying Access Databases with tables linked from other Databases/Files

Hi,

Have a number of Access Databases that I inherited and want to zip a
few of them. My concern is that other active Microsoft Applications
may be linking to the database or its tables. Is there a method of
searching that will allow me to identify those MS Access files that are
linked to. I am not really concerned with itemizing the which files
link to which, but just that a link exists.

Thanks in advance for any help.

Bill

Nov 13 '05 #1
7 2441
It is easy to find the files which it links to but I don't know of any way
to find the files which link to it.

If you want to find the ones it links to look up the "linked table manager".

If you want it the other way round I can't think of any suggestions :(

<bi**********@grainger.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi,

Have a number of Access Databases that I inherited and want to zip a
few of them. My concern is that other active Microsoft Applications
may be linking to the database or its tables. Is there a method of
searching that will allow me to identify those MS Access files that are
linked to. I am not really concerned with itemizing the which files
link to which, but just that a link exists.

Thanks in advance for any help.

Bill

Nov 13 '05 #2
John,

Thanks for the reply. Yeah I had the linked table manager for the
databases linked to. The linked from is what I want.

Bill

Nov 13 '05 #3
The only way I can think of doing the reverse of what the linked table
manager does is to use DAO and loop through the tabledefs, querydefs
(and other objects) of each database in your network/computer and check
the Connection string on all the tables. You *might* have to check the
queries for somethign like "IN <database path>".
you might also have to check the hidden queries that act as rowsources
for form controls etc. Depends entirely on how complex your databases
are.

IOW, think of *all* the ways you can connect one database to another,
and then search for all references.

but I could be completely on crack.... but that's the only way to do it
that my low HP brain can come up with...

Nov 13 '05 #4
Hi Bill,

Look at the Connect property in the help file. Linked tables belong to a
TableDef collection in their respective databases. TdfLinked.connect gives
you a string that contains the name of the source database. You would have
to build a procedure that opens all your databases one at a time, goes to
the TableDef collection and gets the connect property of each table. You
would parse the connect string to get the source database and build a list
of non-duplicate source databases. If you were sure all the linked tables in
a database linked to the same database, you would only need to go to one
linked table to get the source database.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
<bi**********@grainger.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
Hi,

Have a number of Access Databases that I inherited and want to zip a
few of them. My concern is that other active Microsoft Applications
may be linking to the database or its tables. Is there a method of
searching that will allow me to identify those MS Access files that are
linked to. I am not really concerned with itemizing the which files
link to which, but just that a link exists.

Thanks in advance for any help.

Bill

Nov 13 '05 #5
bi**********@grainger.com wrote:
Hi,

Have a number of Access Databases that I inherited and want to zip a
few of them. My concern is that other active Microsoft Applications
may be linking to the database or its tables. Is there a method of
searching that will allow me to identify those MS Access files that are
linked to. I am not really concerned with itemizing the which files
link to which, but just that a link exists.


As others have suggested you'd have to crawl through the network
directories and find all database, then check their Connect property of
any tabledef. It's perfectly doable (if you have the knowledge of DAO
to do it).

OTOH, the only thing you'd have to be certain of is that no one has a
local copy or another database on their PC drive(s). There's no way to
find those (without getting people mad at you for searching their local
drives).

Nov 13 '05 #6
pi********@hotmail.com wrote:
The only way I can think of doing the reverse of what the linked table
manager does is to use DAO and loop through the tabledefs, querydefs
(and other objects) of each database in your network/computer and check
the Connection string on all the tables. You *might* have to check the
queries for somethign like "IN <database path>".


I haven't got a clue how to do it, but shouldn't any active links
initiate the locking ldb file? I know there's ways and methods out on
the net and possibly at the Access Web for determining users via an ldb,
so I wonder if it's possible to do something similar to find what apps
are currently hitting the mdb?

I know in Oracle, I use v$_Session for this.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #7
"ac*******@railvan.com" <ac*******@railvan.com> wrote in
news:11*********************@g49g2000cwa.googlegro ups.com:
bi**********@grainger.com wrote:

Have a number of Access Databases that I inherited and want to
zip a few of them. My concern is that other active Microsoft
Applications may be linking to the database or its tables. Is
there a method of searching that will allow me to identify those
MS Access files that are linked to. I am not really concerned
with itemizing the which files link to which, but just that a
link exists.


As others have suggested you'd have to crawl through the network
directories and find all database, then check their Connect
property of any tabledef. It's perfectly doable (if you have the
knowledge of DAO to do it).

OTOH, the only thing you'd have to be certain of is that no one
has a local copy or another database on their PC drive(s).
There's no way to find those (without getting people mad at you
for searching their local drives).


Well, you'd also want to check the LDB files on the server (using
LDBUSR.DLL or ADO UserRoster). That would at least tell you which
workstations had the MDB files open.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #8

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

Similar topics

1
by: cvchen | last post by:
Hello, I'm implementing a data dictionary (catalogging system) that can be searched in several ways. I finished the first version without using any databases, I just had pickled dictionaries to...
20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
2
by: Internet Arrow Limited | last post by:
Hi, I have a requirement to write an access application that must run under access97 and access2K. Some users will use Acess2K to access data that will also be accessed by Access97 users. The...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
0
by: Stu | last post by:
I have a few FrontPAGE 2002 Webs running on Windows 2003 Servers and IIS. My webs use ASP (classic) pages that display data pulled from the Access databases using the FrontPage database results...
13
by: Zlatko Matić | last post by:
Is it possible to use Access as front-end for POstgreSQL and how ? What about Access Projects (.adp) and PostgreSQL ?
7
by: ddsvi78 | last post by:
I am a complete idiot when it comes to access. Now that said, I work for a computer security company and one of our customers came to us with an access problem. They had been running fine for a...
8
by: rdemyan via AccessMonster.com | last post by:
I've converted my application from A2K format to A2003 format. I tried to follow Allen Browne's protocol in getting my app into A2003 (although I was unable to find informtion on the conversion...
2
by: ARC | last post by:
Just curious if anyone is having issues with Acc 2007 once the number of objects and complexity increases? I have a fairly large app, with many linked tables, 100's of forms, queries, reports, and...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
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
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.