I have a form for entering information, each user must “login” by entering their name when they start up my database. I would like to auto populate each records “User” field with this name they have logged in with.
I already have the whole login setup except I cant for the life of me work out how to insert the UserName string contents into a field when the user hits save.
If you do not wish to use Windows log-in details, the safest and easiest thing is a table. I generally keep a one row table to hold various details and current user name would work well in such a table. It can be deleted from the table in the log-in script and then updated when the user logs in. You can use DLookUp throughout your application to get the user name.