D
Duane Hookom
If you are looking to grab the network login, try the function at
http://www.mvps.org/access/api/api0008.htm.
http://www.mvps.org/access/api/api0008.htm.
Duane Hookom said:Name is a poor name for a field since name is a reserved word. However, you
might try:
EngineerName=DLookup("[Name]", "Engineer", "[Login]=""" & CurrentUser() &
"""")
--
Duane Hookom
MS Access MVP
UserLogonHenro said:No, a user logs in with his Logon which is also(!) defined in Engineer.Logon
So, my thought is:
since CurrentUser() returns a value which is identical to the field
Engineer.Logon it should be possible to find the Engineer.Name in the same
record using the CurrentUser()
I would like to declare a function UserLogon () which looks up the
Engineer.Name in the same record as Engineer.Logon so I can useif
I need to find the Name of the CurrentUser() in a query instead of his/her
Logon.
Problem is: I am a bad programmer :'(
I think I should use the DlookUp but I can't get it working, nor do I know
how to declare a function :-(
grtz Henro