Let's see if I understand what you mean. So you want me to call this procedure after the user logs in? Does that mean I can apply that code to the screen that opens on a successful login such as the main menu on the "On Open" event? Or did you mean to apply the code in the same Login Click event thats listed above?
You also mentioned about recording a 1 for true and 0 for false. Do I add that to your code? Sorry I have no idea what your code is trying to do. I can see that its going to enter the date and time into [LoginDate] and [LoginTime]. Then is Application.currentUser a built in function in access to know which user is logged in? I would think that this data would need to be transferred from the txtUsername text box from the login screen which I found a way to do it without the login form staying open visually. What I do is I open the login form in acHidden view on a successful login using the "On Open" event from the screen that loads after the login. This makes the login form disappear from view but its still there to retrieve the Username from it.