OK, to get into this database, do users have to login to Access? If so, you should be able to get currentuser.
If not, you are going to have to use the Windows API. Put it into a module. and call the function from the text box. I just realized that the code I posted only printed out a message box. Make sure any code you find returns the UserName.
Here is code that works in Excel:
****BEGIN CODE****
' Makes sure all variables are dimensioned in each subroutine.
Option Explicit
' Access the GetUserNameA function in advapi32.dll and
' call the function GetUserName.
Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long
' Main routine to Dimension variables, retrieve user name
' and display answer.
Function Get_User_Name()
' Dimension variables
Dim lpBuff As String * 25
Dim ret As Long, UserName As String
' Get the user name minus any trailing spaces found in the name.
ret = GetUserName(lpBuff, 25)
UserName = Left(lpBuff, InStr(lpBuff, Chr(0)) - 1)
' Display the User Name
Get_User_Name=UserName
End Sub
****END CODE******
You should be able to use this with slight modifications in Access. Then just set the default value to =Get_User_Name()
Hope that helps.
Kathryn