Is there any way of finding out, from the front end.mdb, if any tables out of say 3 tables in a back end.mdb are locked?
Is there a way of finding out who the other users are who are using the back end data.mdb?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Locked tables (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Locked tables (2000)
- This topic has 24 replies, 3 voices, and was last updated 22 years, 5 months ago.
AuthorTopicWSPeter Kinross
AskWoody LoungerDecember 16, 2002 at 9:39 pm #380796Viewing 1 reply threadAuthorReplies-
WBell
AskWoody_MVPDecember 16, 2002 at 11:18 pm #639102I don’t know of any way of determining which tables are locked other than trying to perform an edit operation, and that gets pretty dicey. Re your second question, there is a utility available from the MS web site called LDBview that will let you look at a lock file and see who is currently using a database. See post 88808 and subsequent posts in that thread for further information, and a VBA routine that will give you that sort of info using code.
-
WScharlotte
AskWoody Lounger -
WSPeter Kinross
AskWoody LoungerDecember 17, 2002 at 10:17 pm #639397I need to change some fields in 2 tables. Chages can be: adding fields, deleting fields, changing spelling &/or changing ordinal position. If I just try and do these alterations while a table is being used, I get an error, which is handleable, but from then on I get all sorts of funny things happening. Best if I can see if the tables are in fact being used, before doing the alterations.
There are only 4 – 6 users, so it would also be great if I could find out which ones were actually using the Database. I’ll try Wendal’s suggestion for that, unless there is a simpler way. -
WBell
AskWoody_MVPDecember 17, 2002 at 11:58 pm #639406Are you really sure you want to change table designs on the fly in a back-end?
Doing that means you would need to relink the front-ends, and in addition if any forms or reports (or queries) are dependant on the tables, then things start breaking and users get errors. Generally it’s a recipe for disasters when back-end design changes are made without putting out a new front-end at the same time. There may well be other ways of accomplishing what you need to do without changing back-end tables. What is the reason that you want to change table designs?
-
WSPeter Kinross
AskWoody LoungerDecember 18, 2002 at 6:41 am #639453Wendell, thanks for your earlier tip. You must have an encyclopaedic mind.
Currently the db is split and on 1 computer. But about to got to approx 6 users, with the back end on a server I did a mock of the new set up and tried the code you suggested (using the .ldb file). It works a treat.
As long as I check that no one else is using the back end Db, everything works just fine.
The thing that concerns me is the reference in that code toSet rs = cn.OpenSchema(adSchemaProviderSpecific, _
, “{947bb102-5d43-11d1-bdbf-00c04fb92675}”)What happens when we move to Office 2002, or when Jet 4 becomes obsolete? Will the above line still work?
Thanks for your info. -
WBell
AskWoody_MVPDecember 18, 2002 at 10:57 am #639486Your concern about the code is appropriate, as Jet is supposed to be history in a couple of releases down the road. Whether that will really happen is debateable, but the thrust toward XML storage suggests it really might go away. I haven’t actually tested it with Access 2002, but I would expect it to work, as 2002 still uses Jet 4, although slightly modified if you are using the 2002 file format.
I’m still concerned about your need to make design changes in the backend on an apparently frequent basis – in 10 years and 100s of production databases we’ve not encountered that kind of requirment. It suggests to me that your table design may not be general enough, and in any event will cause you problems down the road when something is changed that breaks the front-ends. Please don’t misunderstand – you will always have a need to make table design changes as requirments for the database change, but they need to be done with considerable care once you have a database in production. And you nearly always have a need to deploy a modified version of the front-end when table design changes are made.
-
WSPeter Kinross
AskWoody LoungerDecember 18, 2002 at 9:08 pm #639658 -
WBell
AskWoody_MVPDecember 18, 2002 at 9:44 pm #639671I think what you really need in this situation is a linking table the contains two pointers, one to the PersonID, and a second to the CategoryID. That implies a separate table that is just ChurchCategories. The same could apply to OwnCategories – a table with the 20 possible categories, and a second linking table with two fields – PersonID and OwnCategoryID. If you want to control ordinal position in some way, you might add a third column (field) to the linking tables which provides an order value to sort on. With this kind of design, you shouldn’t need to change table designs at all.
Having had some experience with the development of church congregation management systems, is it fair to presume you are working on something along those lines?
-
WSPeter Kinross
AskWoody LoungerDecember 18, 2002 at 9:53 pm #639673Yep. Bayside Church Melbourne Austrtalia. We are growing rapidly and we need to expand this management system to work from a new server coming on line in mid Jan 03.
I can’t grasp what the solution you suggested is all about. How does a ‘linking table’ work.
I guess that either you don’t need sleep, or you must be close to Melbournes longitude.
Regards -
WBell
AskWoody_MVPDecember 18, 2002 at 11:25 pm #639692The idea of a linking table is simply to create one or more relationships between two other tables, and you have a field that points to table 1, typically using an integer that is the primary key in table 1, and a second field that points to table 2, again typically an integer that is the primary key for table 2. The primary key on the linking table is often set to the combination of the two fields so you don’t end up with duplicates. If I have a bit of time in the next day or so, I’ll pull a simple example database together and post it as an attachment.
Actually I live about 40 degrees North and UTC – 7 (whatever longitude that is more or less) from Melbourne, but visited there many times during the 80s. And I have a daughter-in-law from Vermont (as in Victoria)
-
WSPeter Kinross
AskWoody LoungerDecember 20, 2002 at 11:17 am #640043 -
WScharlotte
AskWoody Lounger -
WSPeter Kinross
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSPeter Kinross
AskWoody Lounger -
WScharlotte
AskWoody LoungerDecember 21, 2002 at 7:05 am #640208I’m sorry, but apparently I’m not understanding you at all. Are you saying that you can’t do something like this?
SELECT * FROM BayRole WHERE BayRole.ID WHERE ( EXISTS (SELECT DISTINCT PersID FROM tblChurchCategories UNION SELECT DISTINCT PersID FROM tblOwnCategories) ) = True
This assumes that BayRole is actually a table and not a query, and that it is the source for your parent form. That certainly should return only a single record in BayRole for each Person who is in any category.
-
WSPeter Kinross
AskWoody Lounger -
WSPeter Kinross
AskWoody Lounger -
WBell
AskWoody_MVPDecember 21, 2002 at 3:12 pm #640225Sorry – I got distracted by a mini-mega crisis and wasn’t able to respond for a couple of days. After looking at your form, IMHO you are probably trying to display too much data on one form. We have solved this kind of problem by using a tree-view control to display Categories, with members of each category listed beneath the category. Then when you click a particular name, it displays the info about that person (including any categories they are assigned too) in a form. I’ll see if I can come up with a screen shot to show you the idea, but it may take a day or two. In the meanwhile, it looks like you have the idea of a linking table sorted out.
-
WBell
AskWoody_MVPDecember 23, 2002 at 3:28 am #640258Well, it took less time that I thought to locate what I was after. The attached screen shot shows the TreeView on the left with Committees and Activities, and the people who belong to each, and on the right I displayed one of the people and the sub-form used to do a one-off assignment of someone to a particular group. Another form is used to make mass assignments when there are substantial changes in the members of a group, for example at the beginning of a new year. Hope this makes some sense.
-
WSPeter Kinross
AskWoody Lounger -
WBell
AskWoody_MVPDecember 22, 2002 at 1:01 pm #640294Ah, sorry, I didn’t realize that this was an ongoing project that had been deployed for a long while. That does change the nature of what you can easily do. As to the query that is giving you trouble, I noticed that you have fewer parenthesis in the second query than you do in the first – probably not the problem, but you could try it anyhow:
SELECT Bayrole.* FROM Bayrole WHERE (EXISTS (SELECT PersID FROM qryTotCat1 UNION SELECT PersID FROM qryTotCat2));
-
-
-
-
WScharlotte
AskWoody LoungerDecember 18, 2002 at 2:21 am #639424In addition to the caveats Wendell has pointed out, the fact is that it doesn’t matter which table might be “locked”. You simply CANNOT make any design changes to any object unless you can open the database exclusively. You can’t work around that by only dealing with “unlocked” tables.
-
WSPeter Kinross
AskWoody Lounger
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
18 hours, 5 minutes ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
15 hours, 26 minutes ago -
Small desktops
by
Susan Bradley
8 hours, 18 minutes ago -
Totally disable Bitlocker
by
CWBillow
16 hours, 27 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
15 hours, 42 minutes ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
1 day, 21 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
5 hours, 11 minutes ago -
Mystical Desktop
by
CWBillow
2 days, 1 hour ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
1 day, 6 hours ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
17 hours, 16 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
2 days, 16 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
2 days, 19 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
2 days, 17 hours ago -
What is wrong with simple approach?
by
WSSpoke36
15 hours, 33 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
3 days, 4 hours ago -
Location, location, location
by
Susan Bradley
1 day, 19 hours ago -
Cannot get a task to run a restore point
by
CWBillow
3 days, 6 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
2 days, 21 hours ago -
June 2025 Office non-Security Updates
by
PKCano
3 days, 17 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
1 day, 19 hours ago -
Firefox Red Panda Fun Stuff
by
Lars220
3 days, 17 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
4 days, 3 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
4 days, 12 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
4 days, 12 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
4 days, 1 hour ago -
Firefox 139
by
Charlie
3 days, 18 hours ago -
Who knows what?
by
Will Fastie
2 days, 20 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
23 hours, 21 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
9 hours, 15 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.