A family of Microsoft relational database management systems designed for ease of use.
That worked!!! I new it had to something simple that I was missing. Thank you!!! :)
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.
That worked!!! I new it had to something simple that I was missing. Thank you!!! :)
So you need to do it in your form, if you can't do it in your table. I think that's the problem, that CurrentUser() is not usable on the table level. Try setting it as the Default property of the control on your form.
=CurrentUser() gives an error that it's an invalid expression
a table field doesn't have an On Current event???
It automatically changes it to ="CurrentUser" and I just get the text CurrentUser in the field.
And if you enter
=CurrentUser()
If that doesn't work. Try using the On Current event and code like:
If IsNull(Me.CurrentUser) Then
Me.CurrentUSer = CurrentUser()
End If
It automatically changes it to ="CurrentUser" and I just get the text CurrentUser in the field.