Display domain user into form

kevinv

Registered User.
Local time
Today, 18:14
Joined
Mar 31, 2009
Messages
11
Hi,

I am currently working on small access 2010 database where the database consists of a table and one input form. This input form will be mainly used by two persons. In the form there is a dropdown where one selects his name to keep record who entered the data, however I would like this to be according the logged in domain account. This will make sure none of them selects the wrong user by mistake.

Is there a way how get the current logged on domain account into the form ?

Thanks,

Kevin
 
Hi Paul,

Thanks for your reply. I have seen the post in your reply however could not make it to work. I created the module as indicated and saved the module. Then in the form I've selected the field where I want the username to appear and in the default value I mapped to the module, however it returns, #Name?

Thanks,

Kevin
 
Make sure the module and function don't have the same name, and you'd call the function, not the module:

fOSUserName()
 
Thank you very much Paul, It worked as intented.
 

Users who are viewing this thread

Back
Top Bottom