Ray said:
What I do is use Notepad to open the .LDB file. It's simple. It's a fast way
of knowing who is logged in. And no programming involved.
Hon, the downside to this shortcut is that the LDB file shows Susie's and
George's computers as logged into the application when, in fact, Susie's been
in the Bahamas on her honeymoon for the last few days and George hasn't been
back to work since the sporting accident at the company picnic last weekend.
The reason for this is that the LDB file is created and as each new user
opens the database file, his CurrentUser( ) name and computer name are added
to the LDB file. But as each user exits the database, his CurrentUser( )
name and computer name remain in the LDB file, because no records are ever
deleted from it. The records for people who have exited the database are
eventually overwritten when new users open the database and replace the
exited users' records, but if there aren't two additional new users to
overwrite Susie's and George's records, they'll be listed as already "in the
database" when they finally return to work. When the last user in the exits,
the LDB file will be deleted, but until then it may list a dozen or more
people in the database when there's actually only one.
If you want to know who *is* in the database, instead of who *was* in the
database, then you can read this Web page for some suggestions:
http://www.mvps.org/access/general/gen0034.htm