I know I've seen this donne before but I'm not sure how they did it. What I want to do is record the username of the user just logged into access in a record that is currently being added.
Presently I have anopening form that display a combo box of available names. I've tried setting the default value to CurrentUser()but that won't work because the combo box stores a number. Now, if memory serves the way it was done before was that the combo box was on a form other than the startup form and given a default value of =[Forms]![Main].[ISSPdec]. ISSPdec was a variable assigned a value in the "on open" event of startup form.
I tried something similar but can't get it to work. Does anyone have any ideas on how I can have a user log into the database and as they enter records have the it record that it was that user that entered it. Presently they pick from a dropdown.
Thanks
Presently I have anopening form that display a combo box of available names. I've tried setting the default value to CurrentUser()but that won't work because the combo box stores a number. Now, if memory serves the way it was done before was that the combo box was on a form other than the startup form and given a default value of =[Forms]![Main].[ISSPdec]. ISSPdec was a variable assigned a value in the "on open" event of startup form.
I tried something similar but can't get it to work. Does anyone have any ideas on how I can have a user log into the database and as they enter records have the it record that it was that user that entered it. Presently they pick from a dropdown.
Thanks