获取OS用户名 [英] Obtain OS username

查看:112
本文介绍了获取OS用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,

我花了一些时间寻找答案,但至今还没有找到
。有没有什么方法可以使用Access 2000 DB检索用于登录

网络的用户名?该平台是XP专业版。

我假设它可以完成,因为我注意到如果试图打开

存储在网络服务器上的Excel文档,弹出窗口显示我

打开它的人的用户名。


TIA,


Mark

解决方案

只是为了添加我原来的问题,我希望能够记录谁已登录

从前端出来,在什么时间。我已经使用MS工作组

安全来保护数据库,并且我真的不想创建自己的安全性

以便能够记录这个。


再次欢呼,


Mark

Mark Reed <毫安********* @ ntlworld.com>在消息中写道

新闻:U%************ @ newsfe4-gui.ntli.net ...

全部,还没有找到答案。有没有什么方法可以使用Access 2000 DB检索用于登录
网络的用户名?该平台是XP专业版。
我假设它可以完成,因为我注意到如果尝试
打开存储在网络服务器上的Excel文档,会出现一个弹出窗口显示
我打开它的人的用户名。

TIA,

Mark



" Mark Reed" <毫安********* @ ntlworld.com>在消息中写道

新闻:J2 ************* @ newsfe4-gui.ntli.net

只是为了添加到我原来的问题,我希望能够记录谁已登录和退出前端以及在什么时间。我已经使用了
MS工作组安全来保护数据库并且并不是真的想要创建我自己的安全性来记录它。




CurrentUser()


-

问候,


布拉德利


您提出的第一个问题
http://www.mvps.org/access/api/api0008.htm


第二个问题

CurrentUser功能

-

Terry Kreft

MVP Microsoft Access

" Mark Reed" <毫安********* @ ntlworld.com>在消息中写道

新闻:J2 ************* @ newsfe4-gui.ntli.net ...

只是为了添加到我原来的问题,我希望能够记录谁已登录和退出前端以及在什么时间。我已经使用MS
工作组安全来保护数据库,并且并不是真的想创建我自己的安全性
以便能够记录这个。

再次欢呼,
Mark Reed <毫安********* @ ntlworld.com>在消息中写道
新闻:U%************ @ newsfe4-gui.ntli.net ...

全部,
我有花了一些时间寻找答案就此而言


找不到一个。有没有什么方法可以使用Access 2000 DB检索用于登录
网络的用户名?该平台是XP
pro。我假设它可以完成,因为我注意到如果尝试


打开

存储在网络服务器上的Excel文档,会出现一个弹出窗口


打开它的人的用户名。

TIA,

Mark




All,
I have spent some time looking for an answer on this and as of yet have
not found one. Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB? The platform is XP pro.
I''m assuming that it can be done because I have noticed that if try to open
an Excel document stored on the network server, a pop-up appears showing me
the username of the person that has it open.

TIA,

Mark

解决方案

just to add to my original question, I want to be able to record who has
logged in and out of the frontend and at what time. I have used MS workgroup
security to secure the DB and didn''t really want to create my own security
to be able to log this.

Cheers again,

Mark
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:U%************@newsfe4-gui.ntli.net...

All,
I have spent some time looking for an answer on this and as of yet have not found one. Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB? The platform is XP pro.
I''m assuming that it can be done because I have noticed that if try to open an Excel document stored on the network server, a pop-up appears showing me the username of the person that has it open.

TIA,

Mark



"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:J2*************@newsfe4-gui.ntli.net

just to add to my original question, I want to be able to record who
has logged in and out of the frontend and at what time. I have used
MS workgroup security to secure the DB and didn''t really want to
create my own security to be able to log this.



CurrentUser()

--
regards,

Bradley


First question you asked
http://www.mvps.org/access/api/api0008.htm

Second Question
CurrentUser function
--
Terry Kreft
MVP Microsoft Access
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:J2*************@newsfe4-gui.ntli.net...

just to add to my original question, I want to be able to record who has
logged in and out of the frontend and at what time. I have used MS workgroup security to secure the DB and didn''t really want to create my own security
to be able to log this.

Cheers again,

Mark
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:U%************@newsfe4-gui.ntli.net...

All,
I have spent some time looking for an answer on this and as of yet


have

not found one. Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB? The platform is XP pro. I''m assuming that it can be done because I have noticed that if try to


open

an Excel document stored on the network server, a pop-up appears showing


me

the username of the person that has it open.

TIA,

Mark




这篇关于获取OS用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆