A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Who is logged in?



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2010, 03:16 PM posted to microsoft.public.access.forms
Timothy Millar
external usenet poster
 
Posts: 24
Default Who is logged in?

I am looking to identify who is currently logged onto the LAN but instead of
returning their login ID I want to pull their name from a table. Here is
what I have;

tblEMPLOYEE
EmployID (Number)
EmployName (Text)
EmployLogIn (Text)

I have a form that when it opens it will pull the End-Users LAN ID but I
want it to go to the Employee Table and enter in the employee's name instead
of the LAN ID. Example: LAN ID = brownj. When is entered into the form is
"James Brown". Thank you.
  #2  
Old April 29th, 2010, 04:22 PM posted to microsoft.public.access.forms
RonaldoOneNil
external usenet poster
 
Posts: 345
Default Who is logged in?

Set the control source of a text box on your form to
=DLookup("EmployName","tblEMPLOYEE","EmployLogIn = '" & Me.[LAN ID] & "'")

"Timothy Millar" wrote:

I am looking to identify who is currently logged onto the LAN but instead of
returning their login ID I want to pull their name from a table. Here is
what I have;

tblEMPLOYEE
EmployID (Number)
EmployName (Text)
EmployLogIn (Text)

I have a form that when it opens it will pull the End-Users LAN ID but I
want it to go to the Employee Table and enter in the employee's name instead
of the LAN ID. Example: LAN ID = brownj. When is entered into the form is
"James Brown". Thank you.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.