Hi Guys
I have this code storing login times on a table which is fine when logging in and out, however on the login screen when the user enters their username it stores it as a number on the table and not their name??
CurrentDb.Execute "INSERT INTO tblLogInTime (EmpName,[Logintime]) VALUES ('" & cboEmployee & "', Now())", dbFailOnError
Can anyone help please

:banghead::banghead:
I have this code storing login times on a table which is fine when logging in and out, however on the login screen when the user enters their username it stores it as a number on the table and not their name??
CurrentDb.Execute "INSERT INTO tblLogInTime (EmpName,[Logintime]) VALUES ('" & cboEmployee & "', Now())", dbFailOnError
Can anyone help please
:banghead::banghead: