数据宏审计跟踪用户名错误 [英] Data Macro Audit Trail UserName Error

查看:69
本文介绍了数据宏审计跟踪用户名错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用数据宏完成Access 2010(Windows 7 Pro)中的审计跟踪。当我第一次在Windows中设置我的计算机时,我选择将用户名设置为我公司的名称,但后来我在Windows控制面板中将其更改为我的名字。如果我输入

I''m trying to finish up an audit trail in Access 2010 (Windows 7 Pro) using data macros. When I first set up my computer in Windows I chose to set the username as my company''s name, but then later I changed it to my name in the Windows Control Panel. If I type

展开 | 选择 | Wrap | 行号

推荐答案

您使用什么名称登录Windows?我一直以为这是Environ返回的用户名。


您是否在使用某些Windows Server O / S的域中?你在控制面板中的位置更改了用户名吗?


Jim
What name are you using to log into Windows? I always thought that was the user name returned by Environ.

Are you on a domain using some Windows Server O/S? Where in the control panel did you change the username?

Jim


你好Jim,

我是不是在服务器o / s上,我们有一个非常原始的网络。

如果你在类别视图中进入控制面板,然后转到用户帐户和家庭安全,然后单击用户帐户,更改您的帐户name,这是我可以找到更改用户名的唯一方法。
Hi Jim,
I''m not on a server o/s, we have a pretty primitive network.
If you go the control panel in category view, then go to User Accounts and Family Safety, then click User Accounts, Change your account name, that is the only way I could find to change the user name.


这是我用来获取Windows用户名的代码,因为Environ方法可以伪造。
Here is the code that I use to get the Windows user name since the Environ method can be faked.
展开 | 选择 | Wrap | 行号


这篇关于数据宏审计跟踪用户名错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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