----- ' MYUSERNAME is a global variable
MYUSERNAME = DLookup("EMPNAME", "USERACCOUNT", "USERNAME = '" & Me.USERNAME.Value & "'") MsgBox (MYUSERNAME)
The above code captures and displays the login name. no problem.
The issue is when the variable (MYUSERNAME) is used in a form it comes out blank. I learnt from a place that i could use TEMPVARS as solution.
My question is : how could tempvars solve this issue for me please? Please give CODE using TEMPVARS and MYUSERNAME
Thanks