Inputing Current user NT Username into a field

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

Guest

I have made a call Logging database for work, the only problem is that there
is an form for each member of tech staff.

This means that every time i need to update the form I have to do it 4/8
times. What I would like to do is put a bit of code into the "logged by" text
box that would capture whoever was logged on by there NT logon, and save it
into the "logged by" field when the form is saved, therefore if i have to
update the page, I only have to do it once.

Is this possible or if not, how would you surgest I go about this?

Many thanks in advance

John
 
Hi Daniel

Thanks for that info! :)
I have created a new module called fOSUserName as instructed by the link you
gave me, but how do i get the fOSUserNamemodule into a text box on my form?
Sorry If im being a bit dim.

Thanks

John
 
For example you could create an open event for your form where you'd put code
such as

Me.txtboxname = fOSUserName

That should do the trick
--
Hope this helps,

Daniel P






djdohboy said:
Hi Daniel

Thanks for that info! :)
I have created a new module called fOSUserName as instructed by the link you
gave me, but how do i get the fOSUserNamemodule into a text box on my form?
Sorry If im being a bit dim.

Thanks

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top