That was just the ticket! I had to do a little work on it
to make it do what I was looking for, but the meat is
there. Frankly, I was surprised to find there are more
logons to the WS than one might initially think.
Thanks for the help.
Bill Lugg
>-----Original Message-----
>You might want to take a look at the code at this link:
>
>http://www.mvps.org/vbnet/index.html?
code/network/netwkstauserenum.htm
>
>--
>Cheryl Fischer
>Law/Sys Associates
>Houston, TX
>
>"William Lugg" <(E-Mail Removed)> wrote in message
>news:070f01c35a92$b6a900c0$(E-Mail Removed)...
>> Thanks, but that only works on the local machine, right?
>>
>> I need something that goes out to the server and
>> says "I've got this workstation name - who's logged on
to
>> it?" I don't know if this is possible, but it sure
would
>> be nice.
>>
>> Thanks.
>> Bill Lugg
>>
>> >-----Original Message-----
>> >Here are the API calls for the computer name:
>> > http://www.mvps.org/access/api/api0009.htm
>> >and network user name:
>> > http://www.mvps.org/access/api/api0008.htm
>> >
>> >--
>> >Allen Browne - Microsoft MVP. Perth, Western
Australia.
>> >Tips for Access users -
http://allenbrowne.com/tips.html
>> >Reply to the newsgroup. (Email address has
>> spurious "_SpamTrap")
>> >
>> >"William Lugg" <(E-Mail Removed)> wrote in
message
>> >news:079701c35a8b$8230dc20$(E-Mail Removed)...
>> >> I'm attempting to build a tool to show a requesting
>> user a
>> >> list of all users that are connected to the data file
>> in a
>> >> split database. I'm using the MS KB article 198755
>> sample
>> >> code to generate the list. The problem is that it
shows
>> >> the workstation name and "ADMIN" as the user account.
>> >>
>> >> Is there a way through the Windows API to pass in a
>> >> workstation name and get back the username of the
user
>> >> logged on to that workstation?
>> >>
>> >> Thanks.
>> >> Bill Lugg
>> >> (E-Mail Removed)
>> >
>> >
>> >.
>> >
>
>
>.
>