On form Load event, Me.txtMyTextbox = Me.UserName
query criteria: Forms!frmFormName.txtMyTextbox << the form has to be open when the query runs or else you'll get a prompt for the missing value. Use your own object names of course.
I presume you've already taken care of how to create the user ID.