473,544 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSLDBUSR.DLL

Microsoft Article ID : 166938 How To Find Users Connected to an Access
7.0 Database gives some sample code which calls MSLDBUSR.DLL.

In my own testing, this code correctly increments the user count as
additional instances of the app are opened. However it continues to
return the count of the maximum users even after instances are closed.

For example; in my testing I use MyDB.mdb. If I open a second instance
of MyDB.mdb, the user count returned is 2. If a third instance is
opened, the user count is 3. However, if one of those instances is
closed, the user count remains 3. In fact, it continues to return a
user count of 3 untill all instances are closed and the ldb file is
destroyed.

I need to access the current user count. Can anyone shed any light?
Kind Regards

Jennifer

Aug 30 '07 #1
3 4678
Hi,

MX*****@gmail.c om wrote:
Microsoft Article ID : 166938 How To Find Users Connected to an Access
7.0 Database gives some sample code which calls MSLDBUSR.DLL.

In my own testing, this code correctly increments the user count as
additional instances of the app are opened. However it continues to
return the count of the maximum users even after instances are closed.

For example; in my testing I use MyDB.mdb. If I open a second instance
of MyDB.mdb, the user count returned is 2. If a third instance is
opened, the user count is 3. However, if one of those instances is
closed, the user count remains 3. In fact, it continues to return a
user count of 3 untill all instances are closed and the ldb file is
destroyed.

I need to access the current user count. Can anyone shed any light?
You could try the "Network-Monitor" to see whether you get more exact
informations:

http://www.resources.intuidev.com/

Regards
Jens
Aug 30 '07 #2
Thanks Jens. I should have made clear ... we have an Access 97 runtime
app that is in production use in many sites around the world. I am
investigating code that will allow the app to accurately determine the
number of users at runtime. We do have some code that does this
without using MSLDBUSR.DLL. However MSLDBUSR.DLL seems to be popular
in this group, so I thought it would be worth a look.

Jennifer

Aug 30 '07 #3

<MX*****@gmail. comschreef in bericht news:11******** **************@ x40g2000prg.goo glegroups.com.. .
Microsoft Article ID : 166938 How To Find Users Connected to an Access
7.0 Database gives some sample code which calls MSLDBUSR.DLL.

In my own testing, this code correctly increments the user count as
additional instances of the app are opened. However it continues to
return the count of the maximum users even after instances are closed.

For example; in my testing I use MyDB.mdb. If I open a second instance
of MyDB.mdb, the user count returned is 2. If a third instance is
opened, the user count is 3. However, if one of those instances is
closed, the user count remains 3. In fact, it continues to return a
user count of 3 untill all instances are closed and the ldb file is
destroyed.

I need to access the current user count. Can anyone shed any light?
Kind Regards

Jennifer
If I remember well the count is correct *when* you open the db from which you do the counting.
So close *your* db and open again. Is the count correct at *that* time ??

Arno R
Aug 30 '07 #4

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

Similar topics

20
4613
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 4 to Service Pack 7 2) Set Subdatasheet Name to from 3) Shortened the file name of the .MDB file 4) Made sure the Track name AutoCorrect info is...
6
1665
by: Pat | last post by:
Hello, Two questions - hence the weird subject. First, anyone had luck with the Enumerating user accounts in a NT Domain module by Dev Ashish on Access Web (http://www.mvps.org/access/api/api0058.htm). I get "true" as the only return. Also, I am developing my first split database - BE to reside on a file server and the FE to be...
41
2415
by: NB | last post by:
Hi I have been developing on MS Access / Jet / VBA platform for about 2 years. The current project I am working on for a small business is built on Access 2002. It has about 53 tables in 2 backend MDB files, 125 queries, 109 forms & subforms, 43 reports & subreports, 20 code modules and some macros. The size of the backend is now at a...
2
2655
by: Ian | last post by:
Using Access 97 I want to distribute my database over a LAN but limit the number of PC's that can use it at the same time. Perhaps limit it to 3 so when the 4th user tries to open it they cant until one of the others closes the database. I have seen other application that do this according to the number of users that are licensed for it. I...
1
1224
by: swapna_munukoti | last post by:
Hi all, Is msldbusr.dll distributable? Thanks & regards, Swapna.
5
3886
by: Les Desser | last post by:
I know that the .ldb file should show the users currently logged into a database. However, when a user logs out I cannot detect any change in the file. I must be missing something as PSPad pops up a message that the file has changed (maybe it is just detecting the time-stamp but that means something **has** changed) However, when I...
17
3894
by: teddysnips | last post by:
One of my clients has asked me to make a change to one of their Access applications. The application is a Front End/Back End standard app. I didn't develop it, but looking at it tells me that it was done entirely using the Wizards. There is no log-in procedure. They want to amend it so that only one person can be logged in at any one...
6
12481
by: John | last post by:
We have an mdb for about 5 users. They don't have to log in to get into the mdb, they just open it. However, sometimes we need to make sure no one is in the mdb. From the ldb we then see that some one is in the database. Is there some way to find out which user in still in the mdb? Thanks, john
0
7376
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
7633
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7785
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...
1
5310
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...
0
3433
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...
0
3425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1851
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
997
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
679
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.