A family of Microsoft relational database management systems designed for ease of use.
Hmm, So just putting =CurrentUser in the Default value of the control doesn't work?
What does happen?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to make a field in a table have the default value of the current user, so we know who created the record. I thought it would be CurrentUser(), but that's not working. I'm sure it's something simple that I'm missing. Please help.
Thank you!
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hmm, So just putting =CurrentUser in the Default value of the control doesn't work?
What does happen?
It returns by username that I am logged into the database with.
Hit Ctrl+G to go to the Immediate window. Enter:
?CurrentUser
and hit enter. What does it return?
If "Admin", use the function Scott referenced.
I'm trying to pull the username of the person logged into the database - it has user-level security. Should I still use the function you referenced?
This depends on how you identify the current user. I think CurrentUser() only works if you are using ULS.
If you are trying to pick up the currently logged in Windows user ID. Then use this function: