Access Who is Logged In ?

User avatar
Steve_in_Kent
4StarLounger
Posts: 419
Joined: 04 Feb 2010, 11:46

Access Who is Logged In ?

Post by Steve_in_Kent »

Old LDB viewers no longer work for access 2010, i believe.

I want to determine who is logged in.. (typical back end on server, multiple front ends on pc, set up). The code here, http://support.microsoft.com/kb/198755/en-us

I can paste into my front end, and call it.. however, if i point to my current front end, it only lists me, and if i point it (in the code), to the back end, it generates a security error.
(even though the front end is logged in correctly, using the system.mdw as admin)

I do have code in the front end, based on a timer, to kick all users, and i have enabled it, but obiously, not working 100%, as i can't delete the LDB.
----------------------------------------------------------------------------------------
Owing at LEAST 34 beers to other helpful forum members. Especially HansV!

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Access Whi is Logged In ?

Post by HansV »

Is the backend password-protected, or have you set up user-level security?
Best wishes,
Hans

User avatar
Steve_in_Kent
4StarLounger
Posts: 419
Joined: 04 Feb 2010, 11:46

Re: Access Whi is Logged In ?

Post by Steve_in_Kent »

User level security hans, but i sort of found out what i was looking for:-

After a long time a 'googling' this morning, and for anyone else that might read the thread..

You can just open the LBD file with Microsoft word. which gives you the computer name of every machine logged in to your database.

Then ping the computer name, gives you an IP address on the network.

then from a dos prompt, with the correct admin priviledges on the network.. type

wmic.exe /node:{IP address} Computersystem get username

returns the user who is logged on that computer. (you might then have to do a lookup in your user directory, if your company uses numbers, like mine.)

thanks
----------------------------------------------------------------------------------------
Owing at LEAST 34 beers to other helpful forum members. Especially HansV!

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Access Whi is Logged In ?

Post by HansV »

Thanks, might be useful to others.
Best wishes,
Hans