Environ $(“用户名”)在Windows Server 2008 R2中返回错误的值 [英] Environ$("Username") returns wrong value in Windows Server 2008 R2

查看:93
本文介绍了Environ $(“用户名”)在Windows Server 2008 R2中返回错误的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows Server 2008 R2上使用Access 2007应用程序中的Environ $("用户名")时,它不会返回实际的用户名,而是返回单词"Administrator",这是当前登录的用户类型。  任何其他Windows版本都可以正常工作。是什么给出了?

When using Environ$("Username") from my Access 2007 application on a Windows Server 2008 R2 it does not return the actual usernmee but rather the word "Administrator", which is the type of user currently logged in.  Any other Windows version this works fine. What gives?

推荐答案

尝试使用Application.Username并查看是否得到相同的结果。
Try using Application.Username and see if you get the same result.


这篇关于Environ $(“用户名”)在Windows Server 2008 R2中返回错误的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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