=fOSUserName() Doesn't Work, why?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.
On a form I created a text box and added the below code (so that I can see
my LAN Logon ID) but when I go to the Form View I get #Name? in the field
instead of my Login ID. It should work because I can copy the same text box
to a form on a different database and it works. I have been putting this text
box on the Switchboard form to be exact. Would you know why its not working
on one database and not the other? I am using Access 2003.

=fOSUserName()



Thanks.
Iram/mcp
 
Did you make sure to copy in the function and Declarations section in the
standard module that go with it? fosUserName is not a built-in Access
function so it needs to have all of the parts for it to work.
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
____________________________________
Access 2000, 2003, 2007, SQL Server 2000, Crystal Reports 10/XI, VB6
WinXP, Vista
 
Back
Top