Article ID | : | 285822 |
Last Review | : | August 30, 2004 |
Revision | : | 1.0 |
• | SUMMARY | ||
|
• | Computer name. |
• | Logon name. |
• | Whether or not the user is currently connected to the database. (A user's ID remains in the lock database until the last user disconnects or until the slot is reclaimed for a new user connection.) |
• | Whether or not the user connection was terminated under normal circumstances. |
1. | CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database. |
2. | Open the sample database, Northwind.mdb. |
3. | On the View menu, point to Database Objects, and then click Modules. |
4. | Click New. |
5. | Type or paste the following code:
|
6. | Save the module as ShowUsers. |
7. | Close and then reopen the database. |
8. | Press CTRL+G to open the Immediate Window. |
9. | Type the following line in the Immediate window, and then press ENTER: Note that the Immediate window returns a list of users who are logged onto the database. |
• | Microsoft Office access 2003 |
• | Microsoft access 2002 Standard Edition |
• | Microsoft Visual Basic for Applications 6.0 |
Keywords: |
kbhowtomaster KB285822 |